[Closed] Changing default template used for Beaver Builder

This is the community support forum for Types plugin, which is part of Toolset. Toolset is a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients and people who registered for Types community support can post in it.

You are not logged in. You can view support threads, but not post.
If you are already logged in, please refresh your browser.

Related documentation: Content Templates

This topic contains 3 replies, has 2 voices, and was last updated by  Beda 2 months, 1 week ago. The support staff assigned to this topic is Beda.

Viewing 4 posts - 1 through 4 (of 4 total)
Author
Posts
#546280

I have set up a custom template for my Post Type using the beaver builder integration but need to change the default php file it uses to a custom php file i created in my child-theme.

By default when you use the integration for Beaver Builder it uses the single.php template file to create the custom template. I dont want this because it adds the sidebar and is not full width. I could disable the sidebar in the template customizer, but this would also disable it for the blog posts and all other templates that use the single.php file.

The solution for me would be to copy the page.php file which is what beaver builder uses for the page layout (using no sidebar and full width) and use this file as the basis that the views uses but there seems to be no option for this within the Types/views interface.

How can i make this change?

Any help is greatly appreciated!

#546335

Beda
Forum moderator

Supporter languages: English (English ) Spanish (Español ) German (Deutsch )

Supporter Timezone: Europe/Zurich (GMT+02:00)

Beaver Builder Integration lets you edit Content Templates with the Plugin.
Content Templates will replace the_content() part of your Template.
The theme determines what template is used.
This follows the WordPress template hierarchy:
https://developer.wordpress.org/themes/basics/template-hierarchy/

So, if you want a Custom PHP Template to use the Content Template edited with Beaver Builder, you need to create a single-{post-type}-{slug}.php or single-{post-type}.php File:
https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post

There you need to call at least the_content() and then this should apply the Content Template edited with Beaver Builder.

#548911

Oh so if my post type slug is "chapters" creating a page-chapters.php file wont work.

I would need rename that file single-chapters.php, is this correct?

#549018

Beda
Forum moderator

Supporter languages: English (English ) Spanish (Español ) German (Deutsch )

Supporter Timezone: Europe/Zurich (GMT+02:00)

You need to create a single-{post-type}-{slug}.php or single-{post-type}.php File:
https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post

In your case, either single-chapters.php or single-chapters-post_slug.php

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘[Closed] Changing default template used for Beaver Builder’ is closed to new replies.

Known issues and their solutions

We document known issues and their solutions in Toolset erratas. Save time by checking there first and seeing if what you are facing is a known issue. This list is kept short. We do our best to resolve all known issues with every release of Toolset plugins.

Support Policy

Toolset staff will help you use the Toolset plugins correctly, provide any information you need, help troubleshoot problems and advice on best-practices.

Please make sure to issue only one topic per each support ticket.

For more information, read our full Customer Support Policy.

Need custom programming work for your site? Check out our certified partners.