Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

mailchimp popup form not showing up

I have created a popup form in my mailchimp account and I cannot get it to show up on my site. The code generated is

<script type="text/javascript" src="s3.amazonaws.com/downloads.mailchimp.com/js/signup-forms/popup/embed.js" data-dojo-config="usePlainJson: true, isDebug: false"></script><script type="text/javascript">require(["mojo/signup-forms/Loader"], function(L) { L.start({"baseUrl":"xxxx-xxxxx.com","uuid":"xxxxxxxxxxx","lid":"xxxxxxxx"}) })</script>

I tried adding it to header.php, footer.php in wordpress but it doesn't work.

like image 934
maddy Avatar asked May 11 '15 10:05

maddy


2 Answers

It might be that you yourself are already subscribed. Here's JS that can delete the cookie that marks that:

document.cookie = "MCPopupClosed=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/";
document.cookie = "MCPopupSubscribed=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/";
like image 125
ubershmekel Avatar answered Oct 06 '22 03:10

ubershmekel


Your issue is probably that the correct jquery version is not being called. I believe you need a minimum of 1.4.4 and you may find if you have a look at the link below it is a problem with how the pop up is looking for the jquery.js file:

https://www.organicweb.com.au/19561/wordpress/mailchimp-popup-instructions/

like image 45
Stuart Hannaford Avatar answered Oct 06 '22 05:10

Stuart Hannaford