Sidebar on child-page inheriting from wrong parent
-
I am new to WordPress and am working on fixing some existing bugs for my organization without having access to the original designer. The issue we are running into is that when navigating deeper into child pages, the sidebar changes to a completely different sidebar. I am hoping someone can point me to where sidebar’s are managed on WordPress. Example: From homepage>MASTER (correct sidebar)>CORE CURRICULUM (correct sidebar)>APS CASE DOCUMENTATION…. (sidebar changes and is now the navigation for a completely different page)
The page I need help with: [log in to see the link]
-
Hi @sdrosi,
It’s alsways fun inheriting someone else’s fun huh?
Different WordPress themes and plugins can give you options for different templates on the Page’s edit screen. When you login to the Admin and navigate to the editor page for that Page are there any options on the far right side below the Save/Publish buttons?
There may be other options depending on how the theme was created or what plugins are installed and active. Without knowing what theme you are using it’s hard to get more specific at this point.
If you can post a screenshot of the Edit page for this Page that would be helpful. Also what plugins are currently activated?
Sidebars are defined by the theme, and can also be affected by plugins.
Go to the admin panel and see the Appearance > Widgets page for which sidebars are available. Some themes have options per page, to choose a layout or page template (which would affect sidebars). These are set from the meta-box areas in the page editor.If you have a plugin like Dynamic Widgets, then that can change which widgets are shown on each page.
Thanks for both of your responses. After further digging, I have a better vocabulary for stating my issue:
The “pages” I was referring to earlier are actually “Posts”.
So the question now remains, how are Post sidebars handled and how can I get a “Post” to inherit the sidebar of its parent Page?
When I visited each post under Home > Master Curriculum, such as ‘APS CASE DOCUMENTATION AND REPORT WRITING ELEARNING’ in your question above, all of them show the same sidebar, with ‘BHETA’ at the top, while the page on ‘Home > Master Curriculum’ itself is an archive page for the mastercurriculum post type (what you referred to as the ‘parent page’, I think).
I would start with the template file for each of these Master Curriculum posts to see how the sidebar is rendered. This file could be single-mastercurriculum.php … it depends on how the theme was built. Then, you could look at the archive template file to see how it renders its sidebar for comparison.
Try the WP docs on template hierarchy to help you understand the website theme structure.
Sidebars are usually registered by the theme, and then you add widgets (such as Custom Menus) to these sidebars via Appearance > Widgets in WP admin screens.
The topic ‘Sidebar on child-page inheriting from wrong parent’ is closed to new replies.