Thanks for the reply azaozz
Sorry, I'm testing my site on my pc, so not got an url. Using the light-10 theme
Yes, menu is created with wp_list_pages and it uses the class as you point out. Pages are highligthed fine on the menu bar.
But my problem is, what if I'm viewing a Category - in this case no menu page is highlighted because no Page is being called?
In my theme there is a pagefunctions.php file which is where the page menu highlighting appears to happen. For example, section of code:
foreach ( $page_tree[$parent]['children'] as $page_id ) {
$cur_page = $page_tree[$page_id];
$title = $cur_page['title'];
$css_class = 'page_item';
if ( $page_id == $queried_obj->ID )
$css_class .= ' current_page_item';
$output .= $indent . '<li class="' . $css_class . '"><a href="' . get_page_link($page_id) . '" title="' . wp_specialchars($title) . '"><span>' . $title . '</span></a>';
I'm thinking, could I put some similar code in a category.php page to highlight an appropriate Page menu tab. I no coder as you can probably tell!
thanks