Support » Fixing WordPress » removing page tabs from top of home page

  • This is my first time using wordpress. I would like to remove the page tabs that are listed at the top of my website. The page link is listed at the side and top of the page and It is throwing off the presentation of the name and byline. Please help if anyone knows how to remove those please let me know. Thanks in advance.

Viewing 5 replies - 1 through 5 (of 5 total)
  • esmi


    Forum Moderator

    You will almost certainly need to edit your theme’s templates files but unless you provide a link to a page demonstrating the problem, no one will be able to offer much in the way of assistance.

    Okay I need to have the page tabs at the top of my site removed. Here is the link on this site.

    If anyone knows how to remove the page shortcuts at the top please help.

    Hi ginnyk,

    This is an older theme, it doesn’t support the built in WordPress menu feature. So we’ll have to make adjustments manually.

    Open up header.php and look for this line,

    <?php wp_list_pages('title_li=&depth=1&exclude='); ?>

    We can do this one of two ways:

    1. Note the part that says exclude= ? This is where you can exclude certain pages from appearing in the menu. You’ll need the numerical IDs of those pages which you can get by clicking on Pages in the menu on the left side of the page then hovering over each title. As you do so look at the browser status bar at the bottom of the page. You’ll see something like,


    1550 is the numerical ID of that particular page.

    With that in mind simply insert 1550 into that snippet above from header.php. Separate multiple IDs by a comma. For example, let’s assume you have 5 pages you want excluded from the nav menu. That line of code might then look something like,

    <?php wp_list_pages('title_li=&depth=1&exclude=45,98,250,1550,1700'); ?>

    2. Another way to do it is use include rather than exclude. This might be easier if you have a whole bunch of pages you want to exclude. Go back to header.php and look for that line again. Change exclude to include then insert the numerical ID of the page you want included.

    For example, you have 20 pages but only want 3 of them showing up in your menu. The line of code might look something like this,

    <?php wp_list_pages('title_li=&depth=1&include=8,15,60'); ?>

    Notice how we changed exclude to include? Rather than using exclude and listing 17 pages we can use include and list 3. It will only include those 3.

    I was wondering if someone could also help me remove the page tabs at the top of my header. I can’t seem to find following code you’re referring to in header.php:

    <?php wp_list_pages(‘title_li=&depth=1&exclude=’); ?>

    My website address is:

    Thank you!


Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘removing page tabs from top of home page’ is closed to new replies.