Skip Navigation

[Resuelto] Template is «inside» other template

Este hilo está resuelto. Aquí tiene una descripción del problema y la solución.

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 hace 5 años, 12 meses. 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.

Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.

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)

Este tema contiene 2 respuestas, tiene 2 mensajes.

Última actualización por Luigi Martulli hace 5 años, 12 meses.

Asistido por: Christian Cox.

Autor
Mensajes
#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:
enlace oculto

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!