Support

Account

Home Forums Bug Reports Can't insert blocks before and after

Helping

Can't insert blocks before and after

  • Hey there,

    i found a weird behaviour:

    As soon as i just allow ACF and reusable blocks with the “allowed_block_types” filter, the option to insert blocks “before” and “after” disappear.

    function return_allowed_block_types( $allowed_blocks ) {
    	return array(
    		'core/block',
    		'acf/hero',
    	);
    }
    add_filter( 'allowed_block_types', 'return_allowed_block_types' );

    By adding for example a “core/paragraph” block it is again possible to insert a acf block before and after the current block.

    function return_allowed_block_types( $allowed_blocks ) {
    	return array(
    		'core/block',
                    'core/paragraph',
    		'acf/hero',
    	);
    }
    add_filter( 'allowed_block_types', 'return_allowed_block_types' );

    Am i missing something here?

    Cheers
    Wolf

  • Hi Wolf,

    long time since you posted this but did you find a solution?

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Can't insert blocks before and after’ is closed to new replies.