Sauter la navigation

[Résolu] Can’t add classes to view loop in template editor

Ce fil est résolu. Voici une description du problème et la solution proposée.

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 Il y a 3 années et 9 mois. 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)

Ce sujet contient 2 réponses, a 2 voix.

Dernière mise à jour par Kelly Il y a 3 années et 9 mois.

Assisté par: Shane.

Auteur
Publications
#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

Les langues: Anglais (English )

Fuseau horaire: 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!