Does ACF Pro have the ability to register blocks to be used in a full site editing type of template?
When I register my block type as follows in my functions.php file, I’m able to use the block in the editor just fine.
When viewed in the full site editing template, I get “Your site doesn’t include support for the “acf/hero-adapt” block. You can leave this block intact or remove it entirely.”
function adaptable_register_blocks() {
if( ! function_exists( 'acf_register_block_type' ) )
return;
acf_register_block_type( array(
'name' => 'hero-adapt',
'title' => __( 'Hero Block', 'text-domain' ),
'render_template' => 'inc/acf-blocks/block-hero.php',
'category' => 'layout',
'icon' => 'admin-users',
'mode' => 'auto',
'keywords' => array( 'hero', 'header', 'main', 'top', 'title' ),
'align' => 'full'
));
}
add_action('acf/init', 'adaptable_register_blocks' );
Disregard, I figured out my issue. Yes, there is support for blocks to be registered in the full site editing templates.
There’s a short guide here in case anyone needs it:
https://www.billerickson.net/gutenberg-block-templates/