Sauter la navigation

[Résolu] DIVI- Content Template for Single CPT- Option to remove the container class wrap

This support ticket is created Il y a 6 années et 2 mois. 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.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

Marqué : 

Ce sujet contient 1 réponse, a 2 voix.

Dernière mise à jour par Nigel Il y a 6 années et 2 mois.

Assisté par: Nigel.

Auteur
Publications
#1127339

When assigning a certain content template to a single CPT, pls add the option to remove the 'container' wrapped around the post content. Similar to what toolset already implemented for WC Product CPT -> "Add a container DIV around the post body for WooCommerce styling".

Instead of css overriding hack to make it full width, the option to remove/add a container DIV makes things less messy.

related question then -> https://toolset.com/forums/topic/divi-full-width-does-not-work-with-content-template/

#1127496

Nigel
Supporter

Les langues: Anglais (English ) Espagnol (Español )

Fuseau horaire: Europe/London (GMT+00:00)

Hi there

Views Content Templates don't add a wrapper div, they just output whatever is in the template directly. Whatever "wrapper" you find on the content comes from the theme. (That is easier to see when you are not using Divi—which adds *lots* of nested divs—and just add a simple Content Template with twentyseventeen, for example.)

If you are having problems with full-width content with Divi, note the recommendations here: https://toolset.com/documentation/recommended-themes/toolset-divi-integration/matching-divi-styling-using-toolset/

In particular, the section Additionally, within the Row Settings set a custom width of “100%”. Do not select “Full-width row” because, despite the name, it sets the row width to “89%”.