WordPress.org

Ready to get started?Download WordPress

Forums

Remove Link from Menu/Navbar (7 posts)

  1. darkfish
    Member
    Posted 5 years ago #

    Hi,
    Is there any way I can remove a link from the menu/navbar at the top of the page.
    Take a look at http://www.henco-julfo.co.uk/, there is an ad in the sidebar titled "Link Exchange Advertisement". Just above the ad, there is a link saying "↓ More Info on this ad", i would like this to link to a page which explains about that ad and gives visitors the oppurtunity to report an innappropriate ad. This is currently set up, but the page that it links to is linked to in the menu/navbar, which i don't want. I have tried making the page private, but that also makes it unavailable if you are not logged in.
    The theme i am using is widgetlike.
    Any help would be much appreciated =)

  2. buddha trance
    Member
    Posted 5 years ago #

    darkfish,

    You can exclude pages from the menu, using the wp_list_pages template tag. See this codex reference

    http://codex.wordpress.org/Template_Tags/wp_list_pages#Exclude_Pages_from_List

  3. darkfish
    Member
    Posted 5 years ago #

    Thanks very much for the response, but where excactly should I put the code?

  4. figaro
    Member
    Posted 5 years ago #

    Before you try to exclude this through the code, are you sure your theme doesn't have options in your admin panel to allow you to exclude certain pages?

  5. darkfish
    Member
    Posted 5 years ago #

    I don't think so - where would this option normally be?

  6. buddha trance
    Member
    Posted 5 years ago #

    If your theme offers these options, look under "Appearance" in 2.7, or "Design" in earlier versions of WordPress.

    If you want to do it through the code, look in header.php of your theme.

    Or you can use a plugin to hide pages from output. A very good one is pageMash.

    http://wordpress.org/extend/plugins/pagemash/

  7. darkfish
    Member
    Posted 5 years ago #

    I've installed the plugin and it works beautifully.
    Many thanks for all your help.

Topic Closed

This topic has been closed to new replies.

About this Topic