Skip Navigation

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

This thread is resolved. Here is a description of the problem and solution.

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 3 years, 7 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
- 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)

This topic contains 2 replies, has 2 voices.

Last updated by Kelly 3 years, 7 months ago.

Assisted by: Shane.

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

Languages: English (English )

Timezone: 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!