MailChimp Widget
[resolved] Remove the jQuery mailchimp adds to my page (2 posts)

  1. CameronD
    Posted 4 years ago #

    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='http://sno-limit.com/wp-includes/js/jquery/jquery.js?ver=1.7.1'></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,



  2. jameslafferty
    Plugin Author

    Posted 4 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • MailChimp Widget
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic