Skip Navigation

[Resolved] I cannot remove the sidebar from my custom posts

This thread is resolved. Here is a description of the problem and solution.

Problem:

The issue here was that the user was using an OceanWP theme and wanted to use Layouts to remove his sidebar area on the Custom Posts

Solution:

To be able to do this you will need to be running the latest version of Layouts.

Once you have the latest version I would advice taking a look at the link below.
https://toolset.com/documentation/recommended-themes/using-toolset-with-oceanwp-theme/#controlling-oceanwp-theme-options-for-templates-and-archives

This should provide you with the customization options for the theme and you can remove the sidebar here.

This support ticket is created 7 years, 2 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Our next available supporter will start replying to tickets in about 7.44 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 7 replies, has 2 voices.

Last updated by alainL 7 years, 1 month ago.

Assisted by: Shane.

Author
Posts
#576199
Sidebar in Toolset custom post.png

I am trying to: remove the sidebar from the "Discovery" custom post that I created with Toolset

Link to a page where the issue can be seen: hidden link

I expected to see: no sidebar

Instead, I got: a sidebar!

#576203
Customizing OceanWP to remove sidebar.png

I have created a custom post called "Discovery" on my site using OceanWP theme. I have de-activated the sidebar from appearing on posts (Customize > Blog > Single post > Layout), but it still appears on custom posts. I have deactivated all plugins (except Toolset) to rule out incompatibility. I logged out and back in, I cleared cache. I tested putting back the sidebar on posts, moving it to the left side, removing it again: it does work on "normal" posts but not on my custom posts.

I played around with the layouts and content templates for my custom posts, even created a second template after making sure the sidebar was inactive on normal posts (in case the template was generated from an earlier configuration that was retained after customizing). By the way, I noticed that the documentation was not up-to-date on several occurences.

Well, nothing worked. I need your help and advice. Thanks in advance.

#576219

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Alain,

Thank you for contacting our support forum.

This is because it is using the default post template for the CPT, normally users will need to create their own custom php template and remove the sidebars themselves in order to achieve this while some themes have it in their settings to remove the sidebars.

If this theme doesn't allow you to do this then you will need to create a custom template and manually remove the sidebar.

Thanks,
Shane

#576254
Theme options in Toolset.png

Hi Shane,

Thank you for your reply. However, I was looking for something simpler for a non-programmer like myself.

On this page in your knowledge base, you explain how to do exactly what I want:
https://toolset.com/documentation/recommended-themes/using-toolset-with-oceanwp-theme/

However, the "Theme options" that are shown at 1:30 in the video, and in an image down the page, do not appear on my own Layout or Content template. Why is that? If I had access to these as in the video, I would just disable the sidebar, as your demonstrator disables it at 1:50 in the video.

Thanks for helping me with this.

#576260

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Alain,

In order for this option to appear you will need to download the latest layouts beta from the link below.
https://toolset.com/download/toolset-layouts/

Thanks,
Shane

#576265

Great. I will try this later. I have to run, now.

I will let you tomorrow know how it goes.

Have a good evening,

Alain

#576545

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Alain,

Thanks please update me as soon as there is any information.

Thanks,
Shane

#577730

Hi Shane,

Sorry for the late response. We had a long weekend here. in Canada, we have our Thanksgiving before the US, presumably because our winter is also sooner!

Anyway, I just wanted to thank you again and tell you that the beta worked just fine for me. I was able to do what I wnated to do and everything else seems fine.

Have a great day and a great week,

Alain