Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
.current for a page _and_ its subpages
#2
As soon as you’re not happy with the way the menu is generated you’ll have to code your own menu function (most of the time). For this you might find zegnat_menu_function() a good starter.

If you want to see how far you can get editing the standard function you’ll find it in /admin/inc/theme_functions.php. It starts at a line somewhere around 290. You’ll want to edit this line:
Code:
if ("$currentpage" == "$url_nav") { $classes = "current ". $url_nav; } else { $classes = $url_nav; }

Good luck there, I don’t have the time to write you a custom function just now.
“Don’t forget the important ˚ (not °) on the a,” says the Unicode lover.
Help us test a key change for the core! ¶ Problems with GetSimple? Be sure to enable debug mode!
Reply


Messages In This Thread
.current for a page _and_ its subpages - by Zegnåt - 2010-03-15, 06:56:07



Users browsing this thread: 1 Guest(s)