Tagged: sidebar navigation
For some (weird) reason, the dynamically created page sidebar navigation (Corona > Theme Options > Layout & Settings > Page Sidebar navigation) lists all pages instead of just the ancestors, parents, and children. This mostly occurs on child and sub-child levels. It’s not controllable when this happens – at least I haven’t found the reason for it yet. Does anyone know how to fix this issue?
I wasn’t able to reproduce your problem. Could you link to a page where this is occurring? This way we can give specific instructions.
On this page, for example, the left sidebar fully expands:
On this one, however, everything is fine:
It might have been a plugin issue – I uninstalled a couple ones I didn’t need anymore and it’s fine now. However, the search results page still shows all pages in the left sidebar. Does anyone know how to fix this?
The search page is no parent/ancestors or child page of another page and that’s why it will always display all pages. If you’d like to exclude the pages from the search template open up sidebar.php and replace:
if($subNav && isset($post) && is_object($post) && !empty($post->ID))
if($subNav && isset($post) && is_object($post) && !empty($post->ID) && ! is_search())
The topic ‘Sidebar navigation sometimes displays all pages’ is closed to new replies.