If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.
Hi guys, i think the sidebar navigation for nested subpages its a good thing… but i need to get those ads to display first. So please let me know where in the code should i make changes for displaying the automatic sidebar navigation after the widgets… getting it in the midle would be more complicated, doesnt??
open up sidebar.php and move following code:
* Display a subnavigation for pages that is automatically generated, so the users doesnt need to work with widgets
if($subNav && isset($post) && is_object($post) && !empty($post->ID))
$subNav = false;
$parent = $post->ID;
$ancestors = get_post_ancestors($post->ID);
$root = count($ancestors)-1;
$parent = $ancestors[$root];
$children = wp_list_pages("title_li=&child_of=". $parent ."&echo=0");
$default_sidebar = false;
echo "<div class='widget widget_nav_menu'><ul class='nested_nav'>";
– i.e. put it before:
//default dummy sidebar
The topic ‘moving sidebar navigation’ is closed to new replies.