Saltar navegación

[Resuelto] Can’t add classes to view loop in template editor

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

Problem:

The issue here is that the user wanted to add a class to their block, however when they tried to add the class it doesn't get saved when the page is updated.

Solution:

When you add a css class here you will need to press either the Enter key or the spacebar key.

Once you've done this it should set the custom class that you've added.

This support ticket is created hace 3 años, 9 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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Este tema contiene 2 respuestas, tiene 2 mensajes.

Última actualización por Kelly hace 3 años, 9 meses.

Asistido por: Shane.

Autor
Mensajes
#2035663
Screenshot 2021-04-28 160110.png

If I try and add a class to this view loop, it disappears from the box and doesn't appear in the output:

#2035687

Shane
Supporter

Idiomas: Inglés (English )

Zona horaria: America/Jamaica (GMT-05:00)

Hi Kelly,

Thank you for getting in touch.

When you add a css class here you will need to press either the Enter key or the spacebar key.

Once you've done this it should set the custom class that you've added.

Can you try this and let me know if this helps.

Thanks,
Shane

#2036563

aw man! That's so annoying. I filled that in and saved it about 5 times and it never worked. Didn't occur to me that I needed to hit enter 🙁

My issue is resolved now. Thank you!