Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lukasbesch opened this issue Jan 20, 2023 · 0 comments
Open

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

lukasbesch opened this issue Jan 20, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@lukasbesch
Copy link

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 );
@ZafarKamal123 ZafarKamal123 added the bug Something isn't working label Jan 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants