Struggling to find where to add page exclude code in Delicate theme (3 posts)

  1. olivda2
    Posted 4 years ago #

    Hi All,

    I am trying to exclude some pages from the Delicate theme navigation menu without any luck!

    The normal way I do it is do something along the lines of:

    <?php wp_list_pages(’title_li=&depth=-1=&exclude= 80,81,82‘); ?>

    ...where 80,81,82 are page ID's.

    However Delicate theme does not have the wp_list_pages tag in its header file. Instead it has:

    <?php natty_show_navigation ('primary', 'natty_show_pagemenu'); ?>

    If I try overwriting with the wp_list_pages code then all I get is a PHP error.

    Any advice / help would be appreciated.



  2. mobsteady
    Posted 4 years ago #

    Same here!

    Did you solve it?

  3. mobsteady
    Posted 4 years ago #

    Me again.

    After I spend hours looking for the 'natty_show_pagemenu' function to edit and exclude pages, i tried it with list_pages.

    Well - it works. Make sure you do not have bad typos!
    The Code in my header.php:

    <div id="menu" class="topnav">
    	<?php wp_list_pages('title_li=&depth=-1=&exclude=65'); ?>

    I added the 'topnav' class, because i've already styled the menue with this class.

    Good luck!

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic