Skip Navigation

[Resolved] How can I remove the Types shortcode button in the editor?

This support ticket is created 7 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
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 2 replies, has 2 voices.

Last updated by Matthias 7 years ago.

Assisted by: Nigel.

Author
Posts
#581067
wp-types-shortcode-button.png

I need to remove the shortcode button above the editor toolbar. I found solutions to hide the button via CSS but I need to remove it completely. It shouldn't load at all when opening the editor.

How can I solve this?

#581147

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Matthias

There is a filter which can be used to disable the button.

You need to add the following snippet to your theme's functions.php file, or using a plugin such as Code Snippets.

/**
 * Disable Types button
 */
add_filter( 'toolset_editor_add_form_buttons', '__false' );
#581173

Awesome! Thank you!

Small feature request: would be great to have this as an option in the Toolset settings.