Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
  • #22041

    Is it possible to display 1 level of pages only on the default page nav sidebar, and as soon as a page with a child is open, to display its child pages only then and there?

    Or is it possible to turn off child display entirely?



    Hi ncux,

    You can turn off the themes automatic sub navigation menu in the Theme Options>Layout & Settings and then use a plugin that will give you that kind of control (and more customization options). That would be the best and easiest route.




    Devin, any plugin advice then?

    And, as a different approach, is there a quick CSS edit to switch off child display on the nav sidebar entirely?

    I like the way it works now, just need those child-links to be gone.


    In the themes sidebar.php file you could try just removing this from the function:

    $children = wp_list_pages("title_li=&child_of=". $parent ."&echo=0");

    if ($children)
    $default_sidebar = false;
    $sidebar_menu .= "<div class='widget widget_nav_menu'><ul class='nested_nav'>";
    $sidebar_menu .= $children;
    $sidebar_menu .= "</ul></div>";

    But I’m not exactly sure if that is what you mean. I tend to just always suggest a plugin option as it allows you to have front end style control over the options and avoid code editing just for a menu but give that a try.




    Nope, this just @#*&$#@$ auto sidebar navigation in total, displaying everything (all pages, all archives etc) in one long list. :(

    If I turn auto sub navigation, I’d have to manually create sidebar for every page in Theme Builder, then manually create a menu for every sidebar, then manually insert it as a widget. 1-2 pages – no probs, but 30-40 pages…? PIA :(

    Haven’t actually found any working plugin, Content Aware Sidebars seemed like a good solution, but it’s somehow not working properly with Choices.

    What I need is just to display main pages of the category, not their children.

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Page Sidebar navigation / child display’ is closed to new replies.