Support » Plugin: MailChimp Widget » [Plugin: MailChimp Widget] Remove the jQuery mailchimp adds to my page

  • Resolved CameronD


    Hi there,

    I was hoping someone could help me with this. I’m using the mailchimp widget plugin on a website and it appears to adding this line of code to the page,

    <script type=’text/javascript’ src=’′></script>

    I already have a link to jQuery further up in my code which i’ve tried removing but then my other jQuery dependant scripts stop working, so i need to remove the one that mailchimp adds but i can’t seem to find a reference to it in the plugin’s source code.

    I’ve also read that i need to change this line of code,

    var mce_jQuery = jQuery.noConflict();

    to this

    var mce_jQuery = jQuery;

    but again i can’t seem to find this in the plugin’s source code?

    Any help in this matter would be greatly appreciated.

    Many thanks,


Viewing 1 replies (of 1 total)
  • Plugin Author jameslafferty


    The line you’re looking for is in :


    If you look at the add_scripts method for the widget, you’ll see this function call:

    wp_enqueue_script('ns-mc-widget', get_bloginfo('wpurl') . '/wp-content/plugins/mailchimp-widget/js/mailchimp-widget-min.js', array('jquery'), false);

    Note the parameter array(‘jquery’). This loads in a copy of jQuery (the default one supplied by WordPress) if one has not been loaded by WordPress. If jQuery is being loaded in using some other method (inlined in a theme, for example), this mechanism won’t prevent jQuery from being re-included. I’d advise you look at what the source of the other jQuery is and consider making a change there first, but if that’s not an option, removing ‘jquery’ from the call above should work.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: MailChimp Widget] Remove the jQuery mailchimp adds to my page’ is closed to new replies.