Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[ SOLVED ] Active State Navigation
#2
hi andreasbj,

Welcome to the forum.

The built in function to display menu "get_navigation(return_page_slug());" will automatically add a class "current" to the current page menu item.

Just change your CSS code to

Code:
.menu_nav ul li.current a, .menu_nav ul li a:hover {
    background:#f00 url(images/menu_a.gif) repeat-x center;
}

Mike
My Github Repos: Github
Website: DigiMute
Reply


Messages In This Thread
[ SOLVED ] Active State Navigation - by andreasbj - 2011-04-11, 23:28:57
[ SOLVED ] Active State Navigation - by n00dles101 - 2011-04-11, 23:46:43
[ SOLVED ] Active State Navigation - by andreasbj - 2011-04-11, 23:50:40
[ SOLVED ] Active State Navigation - by andreasbj - 2011-04-12, 01:43:32



Users browsing this thread: 4 Guest(s)