Skip Navigation

[Resolved] CSS Classes not being applied using the block editor

This support ticket is created 4 years 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 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 2 replies, has 2 voices.

Last updated by bryonyJ 4 years ago.

Assisted by: Waqar.

Author
Posts
#2086761
CSS.PNG

I am trying to: add a class to an element, heading, single field, a column or anything.

Link to a page where the issue can be seen:

I expected to see:
The CSS class I entered in the text field.
Instead, I got: The CSS Class gets removed (I tried the same on the toolset demo website and I got the same issue)
hidden link
I'm also facing the same issue locally with the latest version of all the Toolset plugins and Astra theme. thank you

#2087885
blocks-custom-css-class.png

Hi,

Thank you for contacting us and I'd be happy to assist.

I've performed some tests on my website, but couldn't reproduce this with the Heading, Single Field, or the Column block. The added custom classed saved correctly in the back-end and showed properly in the front-end output.

Please note that when your start typing in this "CSS Classes" field, it will suggest the existing or already used class names, and in case of a new class name, you'll have to press enter/return key to save it properly. When saved it will show inside a highlighted container with a close button.
( example screenshot attached )

In case the issue still persists, you're welcome to share temporary admin login details along with the link to the page where this can be seen.

Note: Your next reply will be private and please make a complete backup copy, before sharing the access details.

regards,
Waqar

#2088125

My issue is resolved now. Didn't know that you have to press enter after adding the class, as I didn't add any classes before the auto complete didn't suggest any. Thank you!