Block editor preview after core block removal

Latest collection of data for analysis and insights.
Post Reply
suchona.kani.z
Posts: 75
Joined: Sat Dec 21, 2024 6:11 am

Block editor preview after core block removal

Post by suchona.kani.z »

This will take you to the “Create Custom Snippet” page, where you need to add a name for the code snippet you are creating.

Then, choose “PHP Snippet” as the code type from the drop-down menu on the right.

Select PHP Snippet as code type to remove Core WordPress blocks
Next, you need to add the following custom code in the “Code Preview” box:

Once you do this, you will notice that the code contains a list of some of the core WordPress blocks that you need for your site. Any other blocks not mentioned in this list, such as the 'Verse' block, will be automatically removed from the block editor.

However, if you want to delete any of the blocks mentioned in the code, such as the “Separator” block, simply netherlands telemarketing data delete it from the code snippet.

Remove separator blocks' name from the list in the code snippet
Similarly, if a block is not mentioned in the code snippet but you don't want to remove it, you can add its name to the block list.

You can easily do this by typing “core/” and then adding the block name like this:

'core/verse' ,

Add the verse blocks' name in the list of code snippets
Then, scroll down to the “Insert” section and select the “Auto insert” mode.

Once this is done, the custom code will automatically run on your site upon activation.
Post Reply