I've this bit of code within the wordpress theme header.php file:
<?php if ( is_page() ) $highlight = "page_item"; else $highlight = "page_item current_page_item"; ?> <li class="<?php echo $highlight; ?>"><a href="<?php bloginfo('url'); ?>"><?php _e('Main', 'woothemes') ?></a></li> <?php wp_list_pages('sort_column=menu_order&depth=6&title_li=&exclude='); ?>
"Primary" may be the first aspect in the navigational menu. The issue is basically choose every other element in the menu the brand new element will get highlited, however the "Primary" also keeps higlighted. Is it feasible some how you can amend this bit of code to eliminate highlight from the "primary" element when other page item in the menu selected? Thanks!