Closed (fixed)
Project:
Minimax pager
Version:
6.x-1.7
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
20 Sep 2009 at 23:04 UTC
Updated:
29 Jan 2011 at 07:55 UTC
How can I get those arrows you have in display for my website? I think they look much better than what I have.
| Comment | File | Size | Author |
|---|---|---|---|
| sample.jpg | 2.42 KB | azwildcat |
Comments
Comment #1
mattyoung commentedYou do it with CSS background image styling.
Comment #2
nravens commentedAnyone know how to do this with CSS? Sorry for the rookie question but I'm getting nowhere fast with this...
Comment #3
mattyoung commentedHere is the CSS:
The first rule make the text of Frist, Prev, Next, Last links invisible. The rest of the rules add the appropriate background images to each links.
You can use Firebug to see the HTML markup and what CSS target to.
Comment #4
nravens commentedThanks for this...much appreciated. I'll give a go now.
Comment #5
azwildcat commentedThe images for those arrows would reside in the themes folder with the path of sitename/sites/default/themes/mytheme, right? They would not reside in the drpager module folder, right? So I would have direct the CSS code to the proper path from my site’s root directory?
Comment #6
nravens commentedI added this CSS to the drpager.css file, is that not correct? The image path must be ok because it shows in firebug but it's not showing on the actual page I need it to.. so I'm thinking maybe I added this to the wrong file?
the url for the page is "http://www.countryviewguesthouse.co.za/image-gallery" if that helps...
Comment #7
mattyoung commented>I added this CSS to the drpager.css file
No, don't do this. Never hack any contrib module or core. There are multiple ways to add custom css without having to hack core or modules.
Let's say you have the
pager-arrows.csscss file and the arrow image file(s).You can copy them all into your theme folder, edit the theme's .info file and add the stylesheet with this declaration in the .info file:
This is better than hacking contrib module or core but still not ideal because it's still modifying theme.
A better way is to use the CSS Injector module, setup the custom arrows CSS through the CSS injector interface, copy all the image files to the site's file directory.
The way I did it is with a custom module. I use module to do custom theming so that I can upgrade/change theme easily. See http://hddigitalworks.com/theming-cck-content-type on how this is done.
Comment #8
nravens commentedThanks for your help. I can't seem to get the images to display so I eventually just made the arrow white for now so that it's visible on the black background.. that will have to do until I have time to figure out why the images aren't being pulled through... The fact that I can edit the pager-arrows.css file to change the colours, etc must mean that the css file is in the correct location but I assume my image path for the pager-next.png and pager-previous.png arrow images is wrong...
Comment #9
mattyoung commented