{"id":69074,"date":"2021-10-18T06:00:22","date_gmt":"2021-10-18T06:00:22","guid":{"rendered":"https:\/\/www.vwthemes.com\/?p=69074"},"modified":"2022-01-27T09:06:40","modified_gmt":"2022-01-27T09:06:40","slug":"remove-default-blocks","status":"publish","type":"post","link":"https:\/\/preview.vwthemesdemo.com\/old_website\/remove-default-blocks\/","title":{"rendered":"How To Remove Default Blocks In WordPress"},"content":{"rendered":"\n<p>WordPress 5.0 presented Gutenberg \u2013 an altogether new manager interface for posts and pages, permitting WordPress users to create blocks of content. It&#8217;s a drag-and-drop framework, in view of building content from pre-created blocks. In our past article, we have imparted to you how to construct custom blocks in Gutenberg without coding and today how about we investigate how to restrict or remove default blocks in the WordPress block editor.<\/p>\n\n\n\n<p>You can either disable blocks for all users or remove default blocks dependent on user roles or user accounts. You can do this in three ways \u2013 through Block Manager, through plugins, and through code. We will examine each of the three different ways in this article. Our <strong><a href=\"https:\/\/www.vwthemes.com\/best-wordpress-themes\/\" target=\"_blank\" rel=\"noreferrer noopener\">best WordPress themes<\/a><\/strong> will give you an advanced website and many options for customization.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"655\" height=\"411\" src=\"https:\/\/www.vwthemes.com\/wp-content\/uploads\/2021\/09\/remove-default-blocks.png\" alt=\"remove default blocks\" class=\"wp-image-69075\" srcset=\"https:\/\/preview.vwthemesdemo.com\/old_website\/wp-content\/uploads\/2021\/09\/remove-default-blocks.png 655w, https:\/\/preview.vwthemesdemo.com\/old_website\/wp-content\/uploads\/2021\/09\/remove-default-blocks-64x40.png 64w, https:\/\/preview.vwthemesdemo.com\/old_website\/wp-content\/uploads\/2021\/09\/remove-default-blocks-300x188.png 300w, https:\/\/preview.vwthemesdemo.com\/old_website\/wp-content\/uploads\/2021\/09\/remove-default-blocks-96x60.png 96w, https:\/\/preview.vwthemesdemo.com\/old_website\/wp-content\/uploads\/2021\/09\/remove-default-blocks-143x90.png 143w\" sizes=\"auto, (max-width: 655px) 100vw, 655px\" \/><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-method-1-disable-gutenberg-blocks-through-block-manager\">Method 1 \u2013 Disable Gutenberg Blocks Through Block Manager<\/h2>\n\n\n\n<p>This is most likely the simplest method to disable the blocks. This feature was presented in WordPress 5.2, so in the event that you have 5.2 or a more updated version form introduced you can follow this method.<\/p>\n\n\n\n<p>First, click the 3 dots in the top right corner, and afterward, click &#8220;Block Manager&#8221;.<\/p>\n\n\n\n<p>To disable any blocks you would not prefer to utilize, just uncheck the boxes close to the blocks you need to hide.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"method-2-disable-gutenberg-blocks-with-code\">Method 2 \u2013 Disable Gutenberg Blocks With Code<\/h2>\n\n\n\n<p>Presently we will tell you how to restrict\/disable\/remove default blocks by simply utilizing a code. Be extremely cautious while applying codes or you will end up with a broken site in your hands. You can manually disable Gutenberg editor blocks with your own code utilizing the allowed_block_types filter. Simply add the code to your child theme\u2019s functions.php or you can utilize a plugin like Code Snippets to deal with the code.<\/p>\n\n\n\n<p>Here you can pick the blocks you need to enable and all the other blocks will be disabled. For instance, to enable the paragraph block and disable any remaining blocks, you can utilize the code given beneath.<\/p>\n\n\n\n<p>To enable more blocks, you need to simply add the block slugs to the array.<\/p>\n\n\n\n<p>To enable just certain blocks for posts, then, at that point, the following code can be utilized.<\/p>\n\n\n\n<p>To discover the block slugs that you need to remember for the array, you can utilize the Gutenberg code, editorial manager. also along with this learn how to <strong><a href=\"https:\/\/www.vwthemes.com\/change-wordpress-username\/\" target=\"_blank\" rel=\"noreferrer noopener\">Change WordPress Username<\/a><\/strong>. A guide from VW Themes.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"method-3-restrict-or-disable-gutenberg-blocks-with-plugins\">Method 3 \u2013 Restrict Or Disable Gutenberg Blocks With Plugins<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>Disable Gutenberg plugin<\/li><\/ul>\n\n\n\n<p>In this Remove Default Blocks, In case you are not certain enough in your coding abilities, you can utilize modules to assist you with disabling the blocks. The Disable Gutenberg plugin will assist you with incapacitating Gutenberg totally, or specifically disable posts, pages, roles, post types, and theme layouts.<\/p>\n\n\n\n<p>You can download the Disable Gutenberg module from the archive for nothing. Then, at that point, click on &#8220;Install Now&#8221; and activate the plugin. The default plugin settings are designed to hide all traces of the Gutenberg Block Editor, and completely restore the original Classic Editor. Further options for customizing when\/where Gutenberg is enabled are accessible in the plugin settings.<\/p>\n\n\n\n<p>In the event that you uncheck the &#8220;Complete Disable&#8221; option, you can disable Gutenberg for specific roles, post types, page layouts, and post IDs.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>PublishPress Blocks \u2013 Advanced Gutenberg Blocks, Permissions, CSS and Layouts Plugin<\/li><\/ul>\n\n\n\n<p>In case you are searching for an alternative to enable or disable\/remove default blocks for certain users, then, at that point, PublishPress Blocks \u2013 Advanced Gutenberg Blocks, Permissions, CSS, and Layouts plugin can help you. Aside from adding your own custom, reusable CSS styles for your blocks, you can handle who can utilize each block, including default WordPress blocks. It has many new blocks including accordions, galleries, sliders, tabs, maps, tables, and recent posts.<\/p>\n\n\n\n<p>You can install and activate the plugin from the WordPress archive. Then, at that point, go to PublishPress Blocks in your dashboard and click New Profile.<\/p>\n\n\n\n<p>Make a profile and Save it.<\/p>\n\n\n\n<p>Then, at that point, go to the Profile Attribution area and pick which users will utilize this profile. You can pick either user accounts or user roles or both. Assuming you need to disable Gutenberg blocks for every one of the users, simply select all the user roles to apply this profile all around the world.<\/p>\n\n\n\n<p>By default, all the blocks are enabled. To choose which blocks are accessible to users with this profile, go to the Blocks List and disable the blocks you need to obstruct. You can even disable blocks from other third-party plugins.<\/p>\n\n\n\n<p>Save the changes and the users to each profile will just see the blocks that are as yet active.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"conclusion\"><strong>Conclusion<\/strong><\/h2>\n\n\n\n<p>We trust we have equipped you with enough data to disable or remove one or more default blocks of Gutenberg editor. On the off chance that you need more help, simply get in contact with us underneath in the remarks segment.<\/p>\n\n\n\n<p><strong><a href=\"https:\/\/www.vwthemes.com\/buy-wordpress-themes\/\" target=\"_blank\" rel=\"noreferrer noopener\">Buy WordPress themes<\/a><\/strong> from VWthemes for the best website creation experience. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>WordPress 5.0 presented Gutenberg \u2013 an altogether new manager interface for posts and pages, permitting WordPress users to create blocks of content. It&#8217;s a drag-and-drop framework, in view of building content from pre-created blocks. In our past article, we have imparted to you how to construct custom blocks in Gutenberg without coding and today how [&hellip;]<\/p>\n","protected":false},"author":9250,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-69074","post","type-post","status-publish","format-standard","hentry","category-about-wp-themes"],"_links":{"self":[{"href":"https:\/\/preview.vwthemesdemo.com\/old_website\/wp-json\/wp\/v2\/posts\/69074","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/preview.vwthemesdemo.com\/old_website\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/preview.vwthemesdemo.com\/old_website\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/preview.vwthemesdemo.com\/old_website\/wp-json\/wp\/v2\/users\/9250"}],"replies":[{"embeddable":true,"href":"https:\/\/preview.vwthemesdemo.com\/old_website\/wp-json\/wp\/v2\/comments?post=69074"}],"version-history":[{"count":4,"href":"https:\/\/preview.vwthemesdemo.com\/old_website\/wp-json\/wp\/v2\/posts\/69074\/revisions"}],"predecessor-version":[{"id":75034,"href":"https:\/\/preview.vwthemesdemo.com\/old_website\/wp-json\/wp\/v2\/posts\/69074\/revisions\/75034"}],"wp:attachment":[{"href":"https:\/\/preview.vwthemesdemo.com\/old_website\/wp-json\/wp\/v2\/media?parent=69074"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/preview.vwthemesdemo.com\/old_website\/wp-json\/wp\/v2\/categories?post=69074"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/preview.vwthemesdemo.com\/old_website\/wp-json\/wp\/v2\/tags?post=69074"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}