Support » Plugin: Testimonial Slider » Deregister scripts and style on pages that use plugin

  • How do i deregister testimonial-slider on pages it isn’t being used on?

    I’m trying to do something like this in my functions.php

    function my_conditional_script() {
        if (is_front_page() || is_home()) {
            remove_action('wp_print_styles', 'testimonial_slider_enqueue_styles', 999);
            remove_action('wp_enqueue_scripts', 'testimonial_slider_enqueue_scripts', 999);
            remove_action('wp_head', 'testimonial_slider', 999);

  • The topic ‘Deregister scripts and style on pages that use plugin’ is closed to new replies.