Support

Account

Home Forums Gutenberg Block shows in admin/preview not updating front end?

Unread

Block shows in admin/preview not updating front end?

    • jez

    • July 24, 2020 at 8:59 pm

    I have the following block that i made some changes to now it wont make the changes front end.

    I can add and edit content and it appears fine within the Gutenberg editor, but once viewing live it doesn’t make any changes.

    If for example i add in a new class name to the html here

    template-parts/contact/blocks/contact-hero-row.php

    Upload it, i can see the change via the admin editor, but not on the front end. It even has the same block id in the admin and front end.

    If i change the name of the template and re-assign to the ACF it will make the change fine.

    Its almost as if the whole block is cached front end? I have no caching running either.

    Can anyone help why this would be happening please?

      // register a blue row block
            acf_register_block(array(
                'name'              => 'contact-hero-row-blue',
                'title'             => __('Contact Hero Blue Row'),
                'description'       => __('Contact page hero row'),
                'category'          => 'clements_contact_cat',
                'icon'              => 'format-status',
                'mode'              => 'edit',
                'keywords'          => array( 'contact', 'row' ),
                'align'		=> false,
                'supports'	=> array(
                    'align'		=> array('wide'),
                    'multiple' => true
                ),
                'render_template' => 'template-parts/contact/blocks/contact-hero-row.php',
                // 'enqueue_style' => get_template_directory_uri() . '/css/blocks.css',
                // 'enqueue_script' => get_template_directory_uri() . '/js/min/lazysizes.min.js',
            ));
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.