Child pages refuse to load sidebars

I have a problem with an earlier client site. For whatever reason, child pages refuse to load sidebars. If you remove the child from the parent by selecting "no parent" from the dropdown in page edit, the sidebars reappear.

Example of child page where the issue persists
https://healys.com/services/medical-negligence-law/

When you remove a service page from the service parent, it starts working
https://healys.com/commercial-property-law/

The theme used the Custom Sidebars plugin to pull off the sidebars options etc.
https://en-gb.wordpress.org/plugins/custom-sidebars/

The original theme is Downtown
https://themeforest.net/item/downtown-wordpress-multipurpose-bootstrap-theme/7466580

Solutions we've tried
- Updated all plugins + WP
- Updated the theme
- Checked for any CSS issues
- Replaced edited page.php with the unedited version from the theme
- Downgraded the Custom Sidebars plugin to previous versions
- Disabled all plugins to check for conflicts

I've had two other devs check this out to no avail.

The client has an SEO firm who also updates theme files etc so I can't be sure as to when this occurred or following what action.

The issue persists on multisite too.

Any help would be greatly appreciated.

  • Rupok

    Hi Kaine Shutler,

    So sorry for the inconvenience you are having. I just tried to regenerate the same on my test site with a default WordPress theme but I could not. I created custom sidebars and then created a test page. Then checked that page on front-end, the sidebar was loading. Then I made that page a child page and checked front-end again, still the sidebar was loading. So I could not regenerate this on my test site.

    Now, there may be other configurations like replacing other sidebars with custom sidebar, page meta etc. and it's really tough to find out why this is behaving such on your site without checking your full configuration. Moreover, the theme you are using is a third party paid theme and I have no access in their coding and architecture. But from your description, it seems like this was working in this same theme before but currently it's not working anymore. Am I right? If yes, then your theme is not creating the issue, rather something else is causing.

    You confirmed that you did plugin conflict test, and still no result. Could you please ask theme developer regarding this as he can tell you best about why that theme is behaving such? Please let us know what they say about this.

    Still I want to have a look at your setup to investigate the issue. I could tell you better about the issue if I could see it live, check your current configuration and make some tests on your site. Would you mind allowing Support Access so we can have a closer look at this?

    To enable support access you can follow this guide here:
    http://premium.wpmudev.org/manuals/wpmu-dev-dashboard-enabling-staff-login/

    Please confirm here when you are done granting Support Access. I'm looking forward to hearing from you and resolving this issue as soon as possible.

    Have a nice day. Cheers!
    Rupok

  • Nithin

    Hi Kaine Shutler,

    Hope you are doing good today. :slight_smile:

    Sorry for the delay, I checked your pages where you have mentioned the issue, but it seems like the issue is related to the theme pages. If you give a closer look, at the html structure of the child page, you'll notice that the child pages doesn't have a sidebar by default, hence the plugin isn't working, since there aren't any sidebar to replace.

    I double checked this, by disabling the custom sidebars plugin quickly, and created a parent, and child pages, and I was able to notice that the child page doesn't load any sidebar by default. You can check the page created here: yourWebsiteURL.com/test/child-page/

    It could be that the theme by default doesn't come with a sidebar, but since you did mention that it was working before, we could rule that out. So, it could be a theme settings that is causing this issue, maybe there is a setting to disable sidebar in child pages? Since it's a premium theme, I'm not exactly sure whether there is any such setting, or whether some other plugin setting is overriding this. Could you please double check your theme option settings, and see whether this is the case. Also, please check that disabling the plugins, make the sidebar appear in the child page.

    Please do let us know how that goes, and advise if I'm missing out anything, so that we could give a closer look. Have a nice weekend. :slight_smile:

    Kind Regards,
    Nithin

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.