Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Sven Wagener

    (@mahype)

    You just have do unqueue the script.

    function dequeue_fanpage_scripts(){
        wp_dequeue_script( 'fbfpi-plugin-script' );
    }
    add_action(  'wp_enqueue_scripts', 'dequeue_fanpage_scripts', 20 );
    Thread Starter derweili

    (@h3p315t05)

    Thank you for you help.
    I pasted the code into the functions php of my theme but unfortunately it’s not working.

    The following file file is still included:
    /wp-content/plugins/facebook-fanpage-import/includes/skip/includes/js/jquery/colorpicker/jquery.colorpicker.js

    Thread Starter derweili

    (@h3p315t05)

    When the plugin is activated 30 more javascript files are inlcuded then whithout the plugin.
    Does the plugin really need these scripts?

    Plugin Author Sven Wagener

    (@mahype)

    Definetly not. You are totally right.

    The problem is the Skip framework we used to show the options and save the options. But we will get rid of it. I added a ticket for the next version. There I will remove skip and you only have the CSS for the frontend there. I have added a ticket for that:

    https://github.com/awsmug/Fanpage-import/issues/15

    Im the meanwhile I would propose that you will do some changes in the plugin itself. I think it’s the easiest way. Because in the next version which will be overwritten by this plugin I will have removed the problems.

    You can comment out scripts in this file here:
    https://github.com/awsmug/Fanpage-import/blob/master/includes/skip/core/core.php

    I hope that helps you for the moment.

    Thread Starter derweili

    (@h3p315t05)

    Thank you. I will try this.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Disable js’ is closed to new replies.