• hi i’m new to building websites but am currently using the Pink Sky theme by andrej and have modified it to suit my own site but i cant seem to figure out how to get rid of the page list at the top under the header and only have the list in the side bar
    my website is
    somethingfishyaustralia.com

    any help apreciated

Viewing 1 replies (of 1 total)
  • Vaughan

    (@vaughan-van-dyk)

    Hi,

    The WordPress template tag that outputs all the pages of your site is wp_list_pages(). In that particular theme, the code is located in the header.php file, so simply remove the following lines from there:

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

    The code surrounding the tag there is to ensure the list appears on the home page only, formats the list of pages as list items, and dynamically highlights the name of the currently displayed page.

    Hope that helps.
    Vaughan

Viewing 1 replies (of 1 total)
  • The topic ‘romve page list from header’ is closed to new replies.