Passer la navigation

[Résolu] Remove the sidebar in content template

Ce fil est résolu. Voici une description du problème et la solution proposée.

Problem:

A Content Template was created for a custom post type in Toolset, but the page still displayed a sidebar. There was no option inside the Content Template editor to choose a page layout such as full width, left sidebar, or right sidebar.

Solution:

Toolset Content Templates do not control the overall theme layout. The sidebar is added by the active theme or Elementor Theme Builder, so the layout must be changed there instead. If the theme does not offer a setting to remove the sidebar, the theme template (such as single-{posttype}.php) needs to be adjusted to use a full-width layout and remove the sidebar call.

This support ticket is created Il y a 3 months. 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.

Ce sujet contient 1 reply, a 1 voix.

Dernière mise à jour par christopheM-3 Il y a 3 months.

Assisté par: Christopher Amirian.

Auteur
Publications
#2850474

Hi, i create a content template for a custom post type in Toolset
But there is stil thisn annoying sidebar, and no option in the content template page to choose the desire page template (full width, sidebar left or right, etc)
How can i do ?

using Elementor with ONAIr2 theme

Thank you

#2850488

Christopher Amirian
Supporter

Les langues: Anglais (English )

Hi,

Welcome to Toolset support. Toolset Content Templates don’t control the theme layout (sidebar/full-width). The sidebar comes from your theme’s single template (or Elementor Theme Builder), so you need to change it there, not inside the Content Template editor.

If your theme does not have an option to disable the sidebar, you need to contact their support and ask what the best option.

In general, WordPress themes give this option:

Create (or adjust) the theme’s single-{posttype}.php (or equivalent) to use a full-width layout and remove the sidebar call, then let Toolset inject the Content Template content.

Thanks.

#2850837

Thanks.