• Is there a way to publish a page and not have it appear in the navigation bar? Even the child pages appear with this theme. I tried making an empty page, saving it and not publishing it, and then creating a new page with content and making it the child of the blank unpublished page, but that did not work.

    Please advise.

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • I don’t think it would be too hard. Open the header.php file for your theme and locate a statement that looks similar to this:

    <?php wp_list_pages(); ?>

    It may look different, but the important part is to identify the “wp_list_pages” part. You can modify it to exclude a page or pages from navigation like this:

    <?php wp_list_pages('exclude=11,26'); ?>

    The above example will exclude pages 11 and 26 from the nav bar.
    Here is a link to a page that may be of some value.

    …make a backup of any files you are going to modify first. Just in case!

    ??

    https://codex.www.ads-software.com/wp_list_pages

    Thread Starter LABachlr

    (@labachlr)

    Great. Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Publish page and not have it appear in navigation bar at the top?’ is closed to new replies.