I am having difficulty figuring out the best way to display the Slideshow pager as an icon instead of an image or number. Looking at the CSS, it is definitely themeable to attach an icon to the 'pager-item' div but I am struggling to figure out the best way to remove the number within the tag.
Can anyone please tell me if there is a way to do this using the "Advanced Options" or should I be looking to create a preprocess hook in the theme template? Any links or suggestions would be a huge help.
Comments
Comment #1
kriboogh commentedJust add a numbered pager and this css (assuming your image is 10x10 pixels):
.views_slideshow_singleframe_pager .pager-item a{
text-indent:-9000px;
display:inline-block;
outline: 0 none;
background: url('../images/pager_item.png') no-repeat center;
height: 10px;
width: 10px;
}
.views_slideshow_singleframe_pager .activeSlide a {
background: url('../images/pager_item_active.png') no-repeat center;
}
Comment #2
jasont28 commentedThanks for the suggestion kriboogh. I wanted to avoid using text indents that placed items off screen or using display:none; for seo purposes. Google tends to get pretty cranky when using these tactics as they have been abused in the past to artificially boost page rankings.
Comment #3
sadist commentedI'm trying to do the same thing. But my problem is that I can't even make the .activeSlide style working. I saw some issues abt this here but no one has any answer yet.
Please share if you'd found a way to do this. Thanks.
Comment #4
OldAccount commentedThanks, this is exactly what I was looking for. I'm gonna risk the Google crankiness because I'd really prefer to use small images instead of the numbers.
Comment #5
brei9000 commentedFor the solution in #1, the negative text indent hides the background images in IE7 (at least).
Comment #6
Andreas Radloff commentedThis is how I did it:
Add this code to your theme (grnet in my case) template.php
Place images according to the urls in the code above. In my case I wanted to remove the pause-button.
Comment #7
redndahead commentedmarking as fixed.
Comment #9
Observer123 commentedHi, how to replace the pager page numbers with specified text? I mean the pages of views_slideshow pager.
Comment #10
fuerst commentedFYI: In the D7 version of this modul you may use
template_preprocess_views_slideshow_pager_field_item()to replace the pager items by images. Put into the template.php of your theme:Comment #11
megabait commentedhow to hide numbers. (For background I am using css-sprite)
.pager-item {
background: url('../images/slide-point.png') no-repeat;
height: 15px;
width: 15px;
}
.activeSlide {
background: url('../images/slide-point.png') no-repeat;
background-position: 0 -17px;
height: 15px;
width: 15px;
}
.pager-item a, .activeSlide a {visibility:hidden;}