Skip Navigation

[Resolved] Como incrustar un Sidelbar en la Content Template

This support ticket is created 3 years, 10 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
- 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+01:00)

This topic contains 2 replies, has 2 voices.

Last updated by Rafael Corts 3 years, 10 months ago.

Assisted by: Nigel.

Author
Posts
#1654991

Hola Nigel, como puedo hacer para mostrar un sidelbar en un template, estoy haciendo la estructura de una entrada y en la parte superior tengo las migas de pan, que ocupan el 100% del content y después quiero poner el content con un sidelbar pero no se como hacerlo.
¿Para llamar a un sidelbar necesito esta función?

<?php get_sidebar('eventos');?>

Saludos.
Rafa Corts

#1655471

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+01:00)

El tema twentytwenty ya no usa sidebar.php.

Si quieres ver como usarlo en tu tema te sugiero echar un vistazo al tema twentyseventeen.

Nota como la plantilla single.php incluye una llamada a la plantilla sidebar.php por la función get_sidebar().

Puedes llamar a una plantilla más específica, ve https://developer.wordpress.org/reference/functions/get_sidebar/

Puede ser innecesario usar una plantilla de PHP así, quizas es suficiente usar una plantilla "full width" y insertar un bloque donde puedes organizar el contenido en columnas.

#1662771

My issue is resolved now. Thank you!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.