Skip Navigation

[Resolved] Content template does not apply to entire website

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

Problem

I want to create a Content Template that takes over the entire Screen when I view my website on the front end.

However when I assign a Content Template to a post I always see the Title, the Sidebar, and whatnot.

Why?

Solution

Sidebar, Author, Title, Date, Footer, header, and so on, are not part of the_content().

Toolset Content Templates do replace exactly that part of your site:
the_content(), or post body.

The rest is handled by the Theme.

If you need a more advanced solution, below linked is an idea

This support ticket is created 6 years, 9 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.

Sun Mon Tue Wed Thu Fri Sat
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

This topic contains 1 reply, has 2 voices.

Last updated by Beda 6 years, 9 months ago.

Assisted by: Beda.

Author
Posts
#621625
Screen Shot 2018-03-03 at 09.05.12.png

Tell us what you are trying to do?

I am trying to make a completely blank content template, but my theme is importing the template for my blog posts, and forcing my new content template to fit inside it... How can I remove this old template?

I dont want things like the sidebar, the author, the date posted etc.

What is the link to your site?

hidden link

#621697

Sidebar, Author, Title, Date, Footer, header, and so on, are not part of the_content().
https://developer.wordpress.org/reference/functions/the_content/

Toolset Content Templates do replace exactly that part of your site.
The rest is handled by the Theme.

If your plan is to build a website basically from scratch (blank) and decide over the look of the entire template, inclusive header, footer, sidebars and whatnot, I cannot offer you an official solution anymore.

In past, Toolset Layouts would have been the tool of Choice.
But by now, the major purpose of Layouts is as well to replace the_content() only.

Activating the design for the entire template requires custom coded themes.

Fortunately for you, I happen to have created such a theme which you are free to use (but we cannot support it here: hidden link), or, you can use our example Starter Theme (download from the Themes section in Toolset Download area).

The first Theme will allow you to choose if you want to use or not Toolset Layouts and Content Templates or prefer to use the theme's template.

The Starter Theme, on the other hand, will force you to use either Content Templates or Template Layouts depending on what plugin is active (Toolset Layouts or Views).

I suggest to continue to design the content only as it is now, but if you are eager to take the task of custom coding or adapting a theme, above example themes, will hold instructive information on how to do it in the Theme's PHP Files.
The main idea is to call a Layouts function in your templates:
the_ddlayout();
This will then load the assigned Toolset layouts and you can design everything with the Drag And Drop.

However, this approach is not anymore the intended approach - but it works.