• 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)
  • I have the same problem but no solution. In my case, I think it’s because I’ve specified to have the home page other that the post index (and the post index other than the home page). Is that what’s going on on your end?

    If you find a solution, could you please pass it on? I’m going cross-eyed trying to figure out this puzzle.

Viewing 1 replies (of 1 total)
  • The topic ‘Who can solve this menu riddle?’ is closed to new replies.