Skip Navigation

[Resolved] Template is “inside” other template

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

Problem: I would like to hide the large featured image and title text on the single post page.

Solution: Add this custom CSS:

.single-post-content .tool.has-post-thumbnail > img {
  display:none;
}
.single-post-content .tool .entry-header.single-article-header {
  display:none;
}
This support ticket is created 6 years 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 1.20 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 2 replies, has 2 voices.

Last updated by Luigi Martulli 6 years ago.

Assisted by: Christian Cox.

Author
Posts
#1153927
Screen Shot 2018-11-27 at 15.21.58.png

I've created a template for a custom post called "tools"

You can see in an example post here:
hidden link

It shows the custom template created correctly but:

- The "big" feature image isn't in the template created, is like part of the "general post" template (by default I guess)
- The "big" title also.
- Also the content of the custom template is not "full width"

Please check the screenshoot for more info

#1154008

Hi, it depends on how your theme is created and coded. Toolset's Content Templates modify the content when called from the WordPress’ built-in the_content function. If your theme calls the_content function from within a limited area, then Toolset can only replace the contents in that area.

Some themes include a full-width single post template. If your theme includes one of these files, it may be possible to adapt that full-width template file to work with Toolset. I'm not familiar with the UM theme...is there a built-in full-width template for any post type, like Pages or Posts?

For the main title and featured image, some themes have a customization option that will disable those options for specific post types. If your theme does not have such an option, I can provide some custom CSS to hide those elements on specific post types. For example, you can add this CSS in Appearance > Customizer > Additional CSS:

.single-post-content .tool.has-post-thumbnail > img {
  display:none;
}
.single-post-content .tool .entry-header.single-article-header {
  display:none;
}

This code will hide the main title and main featured image on the "tool" custom post type.

#1154028

My issue is resolved now. Thank you!