• Resolved redcastor

    (@redcastor)


    Hello,

    Is it for you to add a filter to disbale style and script.
    The method with define DOKAN_LOAD_SCRIPTS and DOKAN_LOAD_STYLE is very restricted.
    I want to disable the script and style on specific page not on all.

    Regards,

Viewing 1 replies (of 1 total)
  • Hi @redcastor ,

    add_action( 'wp_enqueue_scripts', 'disable_dokan_scripts', 8 );
    function disable_dokan_scripts(){
        remove_action( 'wp_enqueue_scripts', array( WeDevs_Dokan::init(), 'scripts'));
    }

    add these lines on your theme’s functions.php , do your conditional check for specific page before remove_action.

    Let me know if you need more info.

    Thanks

Viewing 1 replies (of 1 total)
  • The topic ‘disable load script and style’ is closed to new replies.