raterus
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Keep main nav "selected" when viewing sub pages.I looked for other instances of “call_user_func”, but did not see them in wp_nav_menu, of course they could be buried in another function.
Can you tell me what I should be looking for? Something perhaps in the theme files?
Forum: Themes and Templates
In reply to: Keep main nav "selected" when viewing sub pages.From what I see, yes. wp_nav_menu will fallback to wp_page_menu if the menu isn’t available.
Again, this is wordpress core code, not something my template controls, so I’m not sure how relevant it is.
Obviously I’m looking to fix my template, not wordpress!
Forum: Themes and Templates
In reply to: Keep main nav "selected" when viewing sub pages.Hi PAE, thanks for helping me out.
Unfortunately my theme is not actually adding the “current-menu-item’ css class, this appears to be something in the core WordPress file (nav-menu-template.php).
There is a function wp_nav_menu, that most pages in my theme call when they need to write out a menu. There is only one place in my theme however that writes out this main navigation bar, so I can’t think how I would modify my theme file any differently to fix this problem.
Hope some of this makes sense, and you possibly know what I should do.
Thanks,
–MichaelForum: Themes and Templates
In reply to: Keep main nav "selected" when viewing sub pages.My current work is unaccessible, but the publically accessible page is at Silverchair
The theme is a custom theme that was created for us “silverchair”
Thanks!