Disabling Extra Swiper - by MAHDAR - on WordPress WooCommerce support

This topic has 4 replies, 3 voices, and was last updated 1 minutes ago ago by Luca Rossi

  • Avatar: mahdar
    MAHDAR
    Participant
    December 23, 2024 at 19:57

    Hi, I hope you’re doing well. Currently, both the theme’s Swiper and Elementor’s Swiper are active.

    Is it necessary for both to be active?

    Files is visible for topic creator and
    support staff only.
    3 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    December 24, 2024 at 08:09

    Hello, MAHDAR,

    Thank you for reaching out to us.

    You can disable theme Swiper JS via Theme Options > Speed Optimization.

    Best regards,
    8Theme’s Team

    Avatar: mahdar
    MAHDAR
    Participant
    December 24, 2024 at 10:21

    Hi, thank you for the guidance. I disabled it, but it still loads.

    I also cleared the plugin cache and Cloudflare cache.

    Avatar: Justin
    Luca Rossi
    Support staff
    December 24, 2024 at 17:09

    Hi @MAHDAR,

    Please add the following code under functions.php file locates in your child theme:

    
    add_action( 'wp_enqueue_scripts', 'm2t_enqueue_page_css_files', 99999 );
    function m2t_enqueue_page_css_files() {
         wp_dequeue_script( 'et_swiper-slider' );
    }
    

    Hope it helps!

  • Viewing 4 results - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.