#sidebar .page-item-41 a height: 36px - this is half of our image height (important) background: url(images/services-btn.png) 0 0 no-repeat - our image background with background position left: 0 top:0
#sidebar .page-item-41 a:hover background-position: 0 -36px - we added negative position of image background top: -36px
I've used roll over images for wordpress menus for a while, but I am stuck with making a image for the menu link that is active. The wordpress menu doesn't seem to recognize the active page and reverts the menu link back to passive style when using this effct. Have you succeeded in using a #sidebar .page-item-41 a:active approach?
but you should have few differents active-btn.png files for different pages. how to write it in css so wp would understand when to use service-active.png and when to use home-active.png
Works perfect here - http://webvine.com.au/ but I just don't get how to do the same.
Comments
If you still have a problem, send me message by contact form, i'll help you with your problem :)
Works perfect here - http://webvine.com.au/ but I just don't get how to do the same.
Thx,
Vlad
i can't see where to put in
Active Menu
i only have
in my php page.
isn't it possible to solve this through css, the way you did with a:hover? I don't understand why a:active isn't working.
I'm having trouble seeing how to implement these styles into my sidebar html list code in Wordpress. You did share the following code:
Quote:
But I'm not sure to implement this into my list of menu items. Could you please give me a better idea of how this works in the WP sidebar.php file?