• Resolved wpuman

    (@wpuman)


    Hi,

    How to dequeue inline scripts.

    wp_dequeue_script( ‘tmpl-woo-variation-gallery-slider-template’ );
    wp_dequeue_script( ‘tmpl-woo-variation-gallery-thumbnail-template’ );

    don’t works..

    Many Thanks

Viewing 1 replies (of 1 total)
  • Place the below code at your child theme’s functions.php or install the Code Snippets plugin and use it as a snippet-

    add_action('woo_variation_gallery_frontend_loaded', function($gallery_frontend){
    	remove_action( 'wp_footer', array( $gallery_frontend, 'slider_template_js' ) );
    }, 10, 1);

    Then check and let me know if it dequeues the scripts or not.

Viewing 1 replies (of 1 total)
  • The topic ‘Dequeue inline scripts woo variation gallery template’ is closed to new replies.