WordPress.org

Ready to get started?Download WordPress

Forums

Editing Header for New Yorker 3.0 theme to not show pages (5 posts)

  1. TheDoubleAgent
    Member
    Posted 6 years ago #

    I have a site with a large number of pages and so I don't want the page list to appear in the header, as it looks unwieldy and a list of pages appears in one of the sidebars, so it doesn't have to be there anyway.

    I have zip experience with code, when I went in and checked out the Header template nothing jumped out at me, but that could easily just be the fact that I don't know what I'm looking for.

    If anyone can tell me how to edit the code so that a list of pages DOESN'T appear across the header, that would be perfect. As stated in the topic, I'm using the New Yorker 3.0 theme.

  2. whooami
    Member
    Posted 6 years ago #

    and the theme can be downloaded from <insert a link to exactly where you downloaded the theme from> ?

  3. TheDoubleAgent
    Member
    Posted 6 years ago #

    Oops!

    Yeah, that would probably be helpful, wouldn't it?

    Right here

  4. whooami
    Member
    Posted 6 years ago #

    inside header.php, near the end of the text inside it you'll find:

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

    removing that bit of code will remove the list of pages. It's at the end of the unordered list so that might affect the display -- play with it and adjust as necessary if so.

  5. TheDoubleAgent
    Member
    Posted 6 years ago #

    Worked like a charm. Thanks for your assistance - if you're ever in Melbourne, Australia, there's a free beer coming your way.

Topic Closed

This topic has been closed to new replies.

About this Topic