generaxion / axio-starter

Superior WordPress starter theme with modern build tools by Generaxion (previously Aucor Starter). 250+ hours of development over 6 years to make the greatest starting point for WordPress site.
https://axio.generax.io
GNU General Public License v2.0
164 stars 25 forks source link

Theme does not support Gutenberg plugin blocks #28

Closed oskarikulmala closed 4 years ago

oskarikulmala commented 4 years ago

For example these plugin provided blocks does not apper on to Gutenberg editor:

https://wordpress.org/plugins/coblocks/ https://wordpress.org/plugins/advanced-gutenberg/

If you change to fex. Twenty twenty theme blocks do appear.

TeemuSuoranta commented 4 years ago

This is sort of by design as we want to limit the available blocks always to ones that make sense for the site to avoid confusing the users or breaking the design and feel of the site. So we have opted to handle blocks so that all blocks are removed by default and only those that the developer permits, are shown.

You can add or remove the allowed blocks with this filter https://github.com/aucor/aucor-starter/blob/master/inc/_conf/register-blocks.php#L20 (you can find the technical names of the blocks in documentation or looking at the source code).

If you do want to just show all the blocks in the editor, you can simply remove that filter and then all installed blocks will also be available in the editor. By default, we don't want this because we want more control over what is shown and future updates might bring new blocks which can be confusing or would need additional styling.