Who can solve this menu riddle?
-
I have some trouble with my menu. It highlights the individual pages when current but 1. it doesn’t highlight the home 2. it highlights home and portfolio when portfolio page is current. My portfolio page is also my posts page.
My menu code is this:
<ul> <li class="<?php if (((is_home()) && !(is_paged())) or (is_archive()) or (is_single()) or (is_paged()) or (is_search())) { ?>current_page_item<?php } else { ?>page_item<?php } ?>"><a href="<?php echo get_settings('home'); ?>">Home</a></li> <?php wp_list_pages('sort_column=menu_order&depth=1&title_li=&exclude=2'); ?> </ul>
But there is obviously something wrong there…
(The exclude=2 is because I otherwise have two homes)
Who can solve this?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Who can solve this menu riddle?’ is closed to new replies.