Support » Fixing WordPress » Hide child page in top bar

  • Resolved freyd


    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: (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 ‘Hide child page in top bar’ is closed to new replies.