• Resolved JJulien

    (@scabuster)


    Hello WooCommerce,

    I would like to prevent Flexslider from loading on my site. (https://flexslider.woothemes.com/thumbnail-slider.html)

    wp-content/plugins/woocommerce/assets/js/flexslider/jquery.flexslider.min.js?ver=2.7.2-wc.7.8.0 is a js script which loads on my site.

    A search online includes sparse information, with suggestions of adding wp_dequeue_script( ‘flexslider’ ); to functions.php file, which I have tried and does not work.

    Kindly let me know the correct code snippets to add to functions.php file.

    Sincerely,
    JJulien

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter JJulien

    (@scabuster)

    Ok here’s the answer:

    add_action( ‘wp_enqueue_scripts’, ‘dequeue_woocommerce_flexslider’, 99 );?

    function dequeue_woocommerce_flexslider(){ 
    wp_dequeue_script( ‘flexslider’ ); 
    }

    Hi @scabuster

    Thanks for reaching out!

    I’m glad you were able to find a solution to your inquiry here and thanks for sharing it with the community too! ??

    Cheers!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to stop Flexslider from loading’ is closed to new replies.