Gutenberg Editor is not the default editor in WordPress and is offering some extra functionalities that you can use. Some of the blocks you may choose to display only on certain devices like desktops or mobile or tablets.
Having the Gutenberg blocks displayed in the function of the device can be done easily and with the help of a plugin. You just need to install a plugin and you are set, after you have the option to choose the device.
There are 2 Gutenberg plugins that is offering the device choosing options:
This is a more complete plugin as is offering also has some custom blocks along with the option to hide the blocks. This is the one I am actually using on this site. Besides adding the option to choose the display option for the core block and the blocks offered by Ghost Kit it is offering also the below blocks:
This is a plugin that is offering basically some conditional options to the Gutenberg Blocks and does not add any extra blocks. With this you get:
For the beginner into WordPress below are the steps to be done:
You just need to go
2. Create a post and Choose Block Settings
Now the plugin is ready to use and in the setting section of the block in the right you should have the option to hide the block like on the below pictures:
Matthew says:
Thank you for posting this. I’ve been looking for a while and I think that Ghost Kit is the way to go. I’ll test it out. Looking forward to seeing how it goes and finding a site wide global block approach to make updates to images (ads) better.