Skip to content

Instantly share code, notes, and snippets.

View marcomarsala's full-sized avatar

Marco Marsala marcomarsala

View GitHub Profile
@marcomarsala
marcomarsala / mailchimp-popup-for-wordpress.md
Last active March 23, 2018 18:59 — forked from nickcernis/mailchimp-popup-for-wordpress.md
MailChimp Popup Script that works with WordPress sites

MailChimp's default popup scripts can break on WordPress sites that use jQuery/jQuery UI unless you include their embed code as the final elements before the closing body tag.

Including them in this way isn't always possible or easy with WordPress.

The code below is an alternative implementation of the loader that forces MailChimp's popup scripts to appear below all other scripts upon page load.

To use it, modify the baseUrl, uuid, and lid attributes with the ones from the original popup script that MailChimp supplies.