Support » Plugin: Gutenberg » Missing “Add to Reusable Block” and “Group”

  • Resolved Anonymous User 18023321

    (@anonymized-18023321)


    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)
  • Thread Starter Anonymous User 18023321

    (@anonymized-18023321)

    A little update: I’ve fixed the problem with group blocks by adding core/group into the array… Now my only problem is with reusable blocks

    Plugin Author Daniel Richards

    (@talldanwp)

    Not sure if this was ever fixed, but ‘core/block’ is also required in the list for the reusable block to work.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.