The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

[resolved] Navbar sub-pages only displaying on parent page (2 posts)

  1. treelovinhippie
    Posted 7 years ago #


    I have a navigation bar with some top-level pages and 1 layer of sub-pages. However the sub-pages are only visible (on-hovering over the parent page link) while on the parent page. i.e. on the homepage I can't see any sub-pages in the navigation.

    I've been fiddling with my code below to no avail...

    <ul id="nav">
                        <?php if (is_page()) { $highlight = "page_item"; } else {$highlight = "page_item current_page_item"; } ?>
                        <li class="<?php echo $highlight; ?>"><a href="<?php bloginfo('url'); ?>">Home</a></li>

    Any help would be muchly appreciated.


  2. treelovinhippie
    Posted 7 years ago #

    ahahaha, I'm using the eShop plugin and it has an option saying "Hide sub pages from menu until top level page is visited."... select No, done. Hate it when those little things distract.

Topic Closed

This topic has been closed to new replies.

About this Topic