Skip Navigation

[Resolved] Disable Types fields in Gutenberg blocks

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

Problem:
Disable Types fields in Gutenberg blocks

Solution:
You should try to add the code given with the following reply to your current theme's functions.php file and try to resolve your issue:

You can find the proposed solution in this case with the following reply:
https://toolset.com/forums/topic/disable-types-fields-in-gutenberg-blocks/#post-1244628

Relevant Documentation:

This support ticket is created 5 years, 8 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

Tagged: 

This topic contains 6 replies, has 2 voices.

Last updated by Aldo 5 years, 8 months ago.

Assisted by: Minesh.

Author
Posts
#1244593

Hello

How can we disable the Types Icon above a Gutenberg block to get to the "Types fields" search modal?

We don't need it and want to get rid of it.

Thanks
Aldo

#1244596

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Well - Can you please share few screenshots that will help me to understand what icon you want to remove exactly from what place?

#1244597
toolset.jpg

Here you go.

#1244628

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Well - there is no native way to disable that button but there is a workaround.

Please try to add the following code to your current theme's functions.php file and try to resolve your issue:

add_action('admin_print_footer_scripts', function() {
    echo '<script type="text/javascript">wp.hooks.removeFilter( \'editor.BlockEdit\', \'toolset/extend-paragraph\' );</script>';
} );
#1244629

Thanks, this worked.
Would be great if you could add a filter to remove it in a native way.

Thanks.
Aldo

#1244630

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Glad to know that it works.

Please feel free to submit the feature request for the same:
=> https://toolset.com/home/contact-us/suggest-a-new-feature-for-toolset/

#1244631

My issue is resolved now. Thank you!