I have black text as default on my main navigation but it changes to red when on a page.
How do I keep the top level navigation text colour to stay the same when a sub-page is selected?
I have black text as default on my main navigation but it changes to red when on a page.
How do I keep the top level navigation text colour to stay the same when a sub-page is selected?
That script only works if I have drop down menus and select the sub-page from the drop down menu (which I don't). Navigating to the sub-page from any other link doesn't highlight the top navigation colour. You can view it here for reference... http://www.levingston.co.uk/photography/
and the sub-page http://www.levingston.co.uk/photography/dprk
Any other way to do this?
ah ok. yes, there's a way, but need to add something to theme-functions.php (in library/functions):
1. search for "$currentPageItem = is_single()"
2. replace that line with this:
global $post;
$currentPageItem = (is_single() && in_category($cat)) || (is_page() && $post->post_parent == $pageID);
Worked like a dream. Many thanks.
I've said it before and I'll say it again, the support for your theme is second to none.
You must log in to post.