Support

Account

Home Forums Gutenberg Your site doesn’t include support for the "acf/slider" block. Gutenberg

Unread

Your site doesn’t include support for the "acf/slider" block. Gutenberg

  • I’m having trouble using blocks with ACF. When creating the block and adding it to the page or post, it works normally, however, after updating or exiting and entering the publication again, this error is returned:

    Your site doesn’t include support for the “acf/slider” block. You can leave this block intact or remove it entirely.

    Here is the creation of one of the blocks added in the file template/blocks.php:

    // Bloco Slider
    if( function_exists('acf_register_block') ) {   
        $result = acf_register_block(array(
            'name'                  => 'slider',
            'title'                 => __('Slider'),
            'description'         => __('Sempre que utilizado, será criado um bloco na página com slider de imagens definidas pelo usuário.'),
            'render_template'   => 'template/modulos/slider.php',
            'category'          => 'blank',
            'icon'                => 'slides',
        'keywords'          => array('slide', 'slider', 'carroussel'),
        'post_types'      => array('post', 'page'),
        'mode'            => 'edit',
        'align'           => 'full',
        ));
    }
    

    and below the block call in the functions.php:

    //Chamada dos blocos criados
    require_once('template/blocos.php');
    

    Remembering that the block is called and added normally, the error only occurs after updating / posting the post. The block is also typically shown on the front-end page (even with this error).

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.