• Hello,
    I am setting up a wordpress site here:
    https://saturn.host4u.net/~thebelle

    I have the menu for the pages split into two parts and I need to remove the “Home” link from the bottom menu but I can’t seem to get rid of it.

    Here’s the code for the bottom menu:
    <?php
    wp_page_menu(‘show_home=0&exclude=0,2,12,14,16&sort_column=menu_order, post_title&link_before=&link_after=’);
    ?>
    I thought show_home=0 would do it but it seems to have no effect.
    Thank you for taking a look.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    Check with this plugin:

    https://www.ads-software.com/extend/plugins/exclude-pages/

    Thanks,

    Shane G.

    Hey tnjeff,

    Did you change your static page in admin settings?
    [link moderated – if you have videos and tutorials that are helpful please submit them to https://wordpress.tv/ and use those links]
    Hope this helps. If not change the code in header.php like this:

    <li class="page_item<?php if (is_home() || is_single()) {echo ' current_page_item';} ?>"><a href="<?php bloginfo('url'); ?>">Home</a>
    </li>
    <?php wp_list_pages('sort_column=menu_order&title_li=&depth=1'); ?>

    Thread Starter tnjeff

    (@tnjeff)

    Thank you Shane and Kim. I did set the static page in the admin. Actually I need the home page to show up in one menu, the one at the top (which is in the header.php file) but not in the menu under the picture(which is in a sidebar.php file).
    I noticed that the static home page doesn’t seem to have an id that I can use to exclude it. That would make it easy.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Remove home page from menu’ is closed to new replies.