If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.
April 12, 2013 at 1:11 pm #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?
ThanxApril 13, 2013 at 7:48 pm #114004
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.
DevinApril 16, 2013 at 12:37 pm #114005
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.April 17, 2013 at 1:16 pm #114006
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");
$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.
DevinApril 22, 2013 at 1:02 pm #114007
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.April 23, 2013 at 5:27 am #114008
The topic ‘Page Sidebar navigation / child display’ is closed to new replies.