Then, go back up and move the “Inactive” switch to “Active”.
Finally, click the “Save Snippet” button to save your settings.
Save the code snippet to remove the core WordPress blocks
You can now visit the block editor to see your changes in action.
Here you will notice that the classic, cover, separator, file and many other blocks will be removed from the blocks menu because they were not part of the code snippets list.
Method 4: Remove a Plugin Block in WordPress
This method can be used when you want to remove a block introduced by a plugin.
Many WordPress plugins add blocks to the content editor. These blocks make it super easy to add plugin functionality to your blog posts or pages.
For example, All in One SEO for WordPress adds FAQ, Breadcrumbs, Table of Contents, and HTML Sitemap blocks to the content editor.
AIOSEO blocks
However, sometimes you may not want to use one of the blocks offered by the plugin because you feel it is irrelevant to your content. In this case, you can remove the plugin block using custom code.
To do that, you need WPCode , the best code snippet plugin and the safest way to add custom code netherlands telemarketing data to your website.
First, you need to install and activate the free WPCode plugin . For more details, see our step-by-step guide on how to install a WordPress plugin .
After activation, visit the Code Snippets ” + Add Snippet page from your WordPress Dashboard. Here, click on the “Use Snippet” button under the “Add Custom Code (New Snippet)” option.