Navigation überspringen

[Gelöst] Como incrustar un Sidelbar en la Content Template

This support ticket is created vor 4 Jahren, 8 Monaten. 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+00:00)

Dieses Thema enthält 2 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von Rafael Corts vor 4 Jahren, 8 Monaten.

Assistiert von: Nigel.

Author
Artikel
#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

Sprachen: Englisch (English ) Spanisch (Español )

Zeitzone: Europe/London (GMT+00: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!