• Resolved jcbridges

    (@jcbridges)


    I am using the Elegant Grunge theme and have set a page for blog posts and pointed the default home page to a static one. The problem I have is now I am showing two “Home” links in the main nav. How can I remove the extra one?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Can you paste in the header.php code around the navigation area?

    I’m guessing the code has something like this:

    <?php wp_page_menu('show_home=1&include=9999'); ?>

    You’ll want to change to:

    <?php wp_page_menu('show_home=1&exclude=22'); ?>

    22 in this case is the page we are excluding. You’ll want to put in the actual page id for the one you wish to exclude.

    Thread Starter jcbridges

    (@jcbridges)

    Here is the menu code from header.php

    <div id=”menu”>

    <div class=”clear”></div>
    </div>

    Remove <li class="page_item <?php if ( is_home() ) { ?>current_page_item<?php } ?>">"><?php _e('Home', 'elegant-grunge') ?>

    Thread Starter jcbridges

    (@jcbridges)

    thanks!

    I am using evening shade and Default home page showing twice in main nav Someone please help

    Hi I have the exact same problem and I tried taking out the li tags under main menu in header. Here’s my code:

    <h2 class=”hide”>Main menu:</h2>
    <ul class=”page”>
    <?php if (is_page()) { $highlight = “page_item”; } else {$highlight = “page_item current_page_item”; } ?>
    <li class=”<?php echo $highlight; ?>”>“>Home
    <?php wp_list_pages(‘sort_column=menu_order&depth=1&title_li=’); ?>

    I would greatly appreciate any help you can offer. My website can be seen at https://www.cstorestexas.com/home

    Thank you!

    Oh and I’m using Theme WP-Andreas01

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Default home page showing twice in main nav’ is closed to new replies.