How to hide the right sidebar in specific pages

Hi!!

In the past, it was an easy task. However it seems broken now.

I have tried to change it on the WordPress editor. Unfortunately, it just changes back to “Default Template” after saving.

I’ve also try to change it on the Pro Editor, but none option seems to hide the right sidebar:

Am I doing something wrong? Or there is something broken?

The page I want to hide the sidebar is: https://www.edinventa.com/en/heromask-foreign-languages/

Thanks for your help :slight_smile:

Carlos

Hi Carlos,

You should be able to change the page template, have you added any custom code in your child theme that affects layout?

You could try testing for a plugin conflict. You can do this by deactivating all third party plugins, and seeing if the problem remains. If it’s fixed, you’ll know a plugin caused the problem, and you can narrow down which one by reactivating them one at a time.

If none helps, try adding this in Theme Options > CSS

body.page-id-4226 {
   padding-right:0;
}

body.page-id-4226 .x-sidebar {
    display:none;
}

Thanks

Could you take a look to try to not showing the right sidebar in a “normal” way?

It’s not the first time there is problems. Last time the solution was to change it within the WordPress editor. But this time it doesn’t seem to work either.

It can be a bug that you can tell the developers. So I suggest you guys first take a look. If you don’t find a solution, I’ll use your workaround (I can’t stop the plugins because the Christmas season has begun and people is entering in the website all the time).

Thanks

Carlos

Hi There,

I could see that you’re using the SiteGround cache plugin:

Could you please temporarily turn it off then change page template of your pages again?

Let us know how it goes!

Hi. I installed it AFTER asking you. Anyway, I’ve disabled it for you.

Any ideas of why it’s not working? :confused:

https://www.edinventa.com/en/heromask-foreign-languages/

Thanks

Carlos

Hello Carlos,

You will need to edit both the English and the Spanish page. I have logged in and went ahead to change the page settings. The sidebar is no longer visible.
https://www.edinventa.com/en/heromask-foreign-languages/

If you need anything else we can help you with, please let us know.

How you did it?

Anyway, I need the sidebar in the Spanish version, and I want to hide the sidebar in the English version. How to do it?

Thanks

Carlos

Hello @educainventions,

The page layout of the main language will be used. Both the Spanish and the English page should have the same layout. Regretfully you cannot have a sidebar in the Spanish version and have a fullwidth content in your English version.

Hope this helps.

But why? They are fully separated and not synced pages.

Could you put the sidebar back and tell me how to add or remove it?

Thanks.

Carlos

Hi Carlos,

I went ahead and set the sidebar back again. As to why it behaves like that, because it’s WPML standard. You’re only translating the content of page but the template and structure will remain the same inheriting the main (default) language. I also tried that before with same result. That, is if you set your WPML to synchronize the templates.

I’m not sure what you mean by synced, but it’s not. Please go to Admin > WPML > Configuration and uncheck the Sincronizar plantilla de página.

Then change your page templates again.

Thanks!

That was the solution!!! :slight_smile:

Just if it helps to somebody else. Remember changing template from the Pro editor does not work for me, so I must change it from the WordPress editor: https://theme.co/apex/forum/t/page-broken-after-changing-to-layout-content-left-sidebar-right/45191/12

I hope it can help somebody.

Thanks so much!!

Carlos

Glad it’s working now, you’re most welcome! And thanks for sharing.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.