WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Hide child page in top bar

[Resolved] Hide child page in top bar

  • Hello everyone,
    I read so many answers on this topic already but nothing worked for me.
    I want to display 2 levels of pages in my navigation bar (parent and child 1). I opened the post-template.php file, went to the wp_list_pages line modified the depth parameter to depth=2 I even tried different values just in case.

    The child pages (level 2) always show, it is so ugly. I tried exluding them one by one in the child_of' => 0, 'exclude' => '' line, but no result.

    Did I miss a $ somewhere?

    Here is the website if you want to have a look: sballiance.org. (the tab “our members” is the problem).

    Thanks in advance.

Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Resolved] Hide child page in top bar’ is closed to new replies.
Skip to toolbar