Where to paste code for a pop-up window

Permalink
I have code for a Mailchimp pop-up subscribe window -

<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":"mc.us3.list-manage.com","uuid":"1e15db8f75cc997e2dd091262","lid":"9f01bccfe3"}) })</script>


Can anyone tell me where to put it? I've tried the header, but apparently, that's wrong. Suggestions? Thanks in advance!

 
tallacman replied on at Permalink Reply
tallacman
You should be able to put it in any editable area. You want to use the html block.
alanpalmer replied on at Permalink Reply
I tried it in a couple of spots, and each time I try it, I lose the ability to add blocks to the page... I end up moving back a version to clear it. So I'd like to know how to make this work properly as well... Given I saw an Add-On, I'm wondering if the functionality is now not that simple.
TMFranklinAuthor replied on at Permalink Reply
I don't know. I've tried in several different blocks, as well as directly into the header.php and footer.php files and I can't get it to work. I've given up, as I'm most likely going to be switching to MailerLite anyway, and will have to start over. Good luck!
alanpalmer replied on at Permalink Reply
I tried it in a couple of spots, and each time I try it, I lose the ability to add blocks to the page... I end up moving back a version to clear it. So I'd like to know how to make this work properly as well... Given I saw an Add-On, I'm wondering if the functionality is now not that simple.
DeviantDeer replied on at Permalink Reply
DeviantDeer
I have the same issue. I get a lot more subscribers w/the pop up vs. the static sign up form. I had to go into the database to extract the javascript from my html block where I pasted the mailchimp code because I couldn't edit anything on the page at all.