• Resolved aylaa

    (@aylaa)


    How can I configure the navigation bar to only show 1 level of sub-pages? I have had a look at the article about list_pages and saw that it must be possible, but cannot figure out how to get the right code into the blend theme header. Or does anyone know of another way to solve my problem?

    A while ago I made the mistake of trying to create a new page with the NextGEN Gallery plug in. Apparently that doesn’t work with WPML activated. No page was created, but it did show up in my navigation bar. Luckily as I tried to create it as a sub-sub-page, I was able to solve this problem at first by hiding the parent page from the navigation bar and setting it to private. But suddenly this doesn’t work anymore. If I either hide the parent page from the navigation bar or set it to private, a link to the non-existing page just shows up in the top level of the nav bar. (Also wondering how this suddenly happened??!) I can’t hide the page itself from the nav bar, because it doesn’t exist. I want it gone! (

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter aylaa

    (@aylaa)

    I have seen that but unfortunately don’t know much about coding.
    That should be in the header, right? There is a bit with list_pages there, but it looks different, so I’m completely lost.

    $links=strip_tags(wp_list_pages("meta_key=header&meta_value=1&title_li=&hierarchical=0&echo=0"),"<a>,<li>");

    Do I change something there, or do I add a whole new line somewhere else?

    Try:

    $links=strip_tags(wp_list_pages("meta_key=header&meta_value=1&title_li=&hierarchical=0&echo=0&depth=2"),"<a>,<li>");

    Thread Starter aylaa

    (@aylaa)

    Already tried it like that, didn’t work.
    But I have just found out that even if I managed to hide sub-sub-pages, that only solves the problem for the default language, as the :/ So I guess I need to find another solution.

    Thread Starter aylaa

    (@aylaa)

    This forum then probably isn’t the right one anymore? It’s with all themes, this non-existing page shows up….

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Blend theme – navigation bar problem’ is closed to new replies.