Support

Account

Home Forums Front-end Issues ACF has disappeared from frontend?

Helping

ACF has disappeared from frontend?

  • I’ve migrated my WordPress underscores theme from Local to live and now my ACF has disappeared from the frontend? I’m using Underscores theme, along with tailwind css. I can see no errors in the console? I used all-in-one migration plugin as well?

    https://mercuryinkdesign.co.uk/

  • This is how I’ve registered the block types in my function file:

    add_action(‘acf/init’, ‘my_acf_init_block_types’);
    function my_acf_init_block_types()
    {

    if (function_exists(‘acf_register_block_type’)) {
    acf_register_block_type(array(
    ‘name’ => ‘Video header’,
    ‘title’ => __(‘Video header’),
    ‘description’ => __(‘Video header’),
    ‘render_template’ => ‘template-parts\blocks\video-header.php’,
    ‘category’ => ‘formatting’,
    ‘icon’ => ‘admin-comments’,
    ));
    acf_register_block_type(array(
    ‘name’ => ‘Text with button’,
    ‘title’ => __(‘Text with button’),
    ‘description’ => __(‘Text with button’),
    ‘render_template’ => ‘template-parts\blocks\text-with-button.php’,
    ‘category’ => ‘formatting’,
    ‘icon’ => ‘button’,
    ));
    acf_register_block_type(array(
    ‘name’ => ‘header Image’,
    ‘title’ => __(‘header Image’),
    ‘description’ => __(‘header Image’),
    ‘render_template’ => ‘template-parts\blocks\header-images.php’,
    ‘category’ => ‘formatting’,
    ‘icon’ => ‘dashicons-format-image’,
    ));
    acf_register_block_type(array(
    ‘name’ => ‘header Main Image’,
    ‘title’ => __(‘header Main Image’),
    ‘description’ => __(‘header Main Image’),
    ‘render_template’ => ‘template-parts\blocks\header-main-img.php’,
    ‘category’ => ‘formatting’,
    ‘icon’ => ‘dashicons-format-image’,
    ));
    }
    }

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

You must be logged in to reply to this topic.