Skip Navigation

[Resolved] Disabling classes Toolset Blocks adds to HTML

This support ticket is created 4 years, 1 month 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 kevinR-6 4 years, 1 month ago.

Assisted by: Waqar.

Author
Posts
#2187991

Hi there! I'm currently buildinng a website based on Toolset Blocks for a lot of front page elements like the homepage. Since I'm coding the website from scratch, I would simply love to have full control over the classes on my Toolset Blocks, but currently it's adding a lot of unnecessary classes to my code. Is there any way to prevent Toolset from adding all these classes? Stuff like "wp-block-toolset-views-view-template-block wpv-block-loop-item php-to-be-replaced-with-shortcode" seems a bit unnecassary to me.

A preview can be viewed at hidden link. Thanks in advance,

Kevin

#2188485

Hi Kevin,

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

The new block-based editor 'Gutenberg' from WordPress, aims to provide a code-free interface, to add content elements with inline design controls.

While, you can add your own custom classes and IDs, into the output from these blocks, the default HTML elements can't be disabled as they exist to fulfill certain design or functional requirement(s).

If you'd prefer to have the absolute control over the HTML/output, then you can use the classic/legacy editor, instead of the blocks editor.

To enable the classic/legacy editor, you can select the option "Show both the legacy and Blocks interface and let me choose which to use for each item I build" for the editing experience.
( at WP Admin -> Toolset -> Settings -> General )

The guides on using classic/legacy editor are available at:
https://toolset.com/documentation/legacy-features/views-plugin/

I hope this helps and please let me know if you need any further assistance around this.

regards,
Waqar

#2188563

Hi Waqar,

That's the feeling I got, so I decided to switch back to the views plugin. Thanks.