Skip Navigation

[Resolved] Custom block classes not working

This support ticket is created 4 years, 2 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 7 replies, has 2 voices.

Last updated by jasonw-2 4 years, 1 month ago.

Assisted by: Shane.

Author
Posts
#1825213

Trying to use custom classes for elements in blocks and they simply aren't working.

I'm also experiencing every time I go to edit the content template that it's automatically inserting a button.

#1825291

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Jason,

Thank you for getting in touch.

What happens when you try to insert the custom class on a block ? Does the class get added or does it disappear after you've added it to the custom class section.

Please let me know.
Thanks,
Shane

#1825343
deprecated.png

last night I was actually getting both. I'd try to add a class and it would disappear after I saved. Now I don't seem to have that issue but it's just not working.

The template in question is here page=ct-editor&ct_id=2074

That and like I stated.. when I go to edit the template, it keeps putting a button in there. Something janky is going on for sure.

I just noticed all this (img attached) in the console. I'm sure that has something to do with it?

#1826059

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Jason,

I suspect the issue with the class is that you're not pressing the space bar after you've typed the class name.

Once you type in the name of the class you need to press the space bar and not simply click outside of the dialog box.

Secondly can you let me know how you replicate the buttons issue ?

Thanks,
Shane

#1826121
button.png

I'll try that. The button issue: A button appears every single time I go to edit that template. I'm using Chrome and even just cleared cache and all data except login passwords and it still put the button there when I even simply load the edit page.

#1826141

Why is all that deprecated stuff in the console. What is that all about also?

#1826189

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Jason,

Not sure why you're having the button appearing but I've deleted it and anytime i go back to edit the content template it doesn't appear again.

Secondly all the deprecated warnings are coming from the wordpress block editor itself. This can be related to other plugins that are active but I cannot say for sure why they are appearing.

Thanks,
Shane

#1826547

Thanks for trying.