Skip to content

cf7-blocks-integrate is loaded in the frontend #5

@lukasbesch

Description

@lukasbesch

I think the cf7-blocks-integrate script and styles are only needed for the block editor, right?
They are loaded in the frontend at the moment.

Temporary fixed with:

add_action( 'wp_enqueue_scripts', function () {
    if ( ! is_admin() ) {
        wp_dequeue_script( 'cf7-blocks-integrate' );
        wp_dequeue_style( 'cf7-blocks-integrate' );
    }
}, 100, 2 );

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions