Missing “Add to Reusable Block” and “Group”
-
I’m customizing my Astra child theme to only show certain blocks in the Gutenberg editor, and so I’ve added the following code to my functions.php file:
add_filter( 'allowed_block_types', 'liznov_allowed_block_types' ); function liznov_allowed_block_types( $allowed_blocks ) { return array( 'core/paragraph', 'core/heading', 'core/image', 'core/list', 'core/quote', 'core/separator', 'core/spacer', 'core/audio', 'core/video', 'core/file', 'core/table', 'core/nextpage', 'core/verse', 'core/code', 'core/freeform', 'core/html', 'core/preformatted', 'core/buttons', 'core/shortcode', 'core/text-columns', 'core/missing' ); }
After doing so, however, I lost the option to group blocks or add them to a reusable block. I’ve been googling how I can enable them again, but came up empty. Anybody knows how to fix this?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.