Archived topic
Adding Mail Chimp's Pop-Up Form HTML to GP
13 replies · Started by tbgr on December 8, 2019
Good afternoon.
I'd like to add Mail Chimp's Pop-Up Form HTML to my GP website. According to Mail Chimp's "Help" instructions, after editing the form to my satisfaction, I need to generate the code and then paste it in my website's HTML.
1. Do you recommend doing this? If so, please provide instructions.
2. Am I better off using a Pop-up form plugin? If so, any recommendations?
Thank you!
Hi there,
1. Not sure if I understand. There isn't anything in GP that generates the code for you. Perhaps this question is better for MailChimp's support?
2. This is all personal reference so we don't really have recommendations for it. Just find a plugin that fits your need the best :)
The code is generated in Mail Chimp. I can copy it. The issue is: where do I paste it within Wordpress?
Or would I be better off just using a plugin?
What kind of code is it?
Did MailChimp provide instruction on where to add it?
They did not. Here's what they said:
"Here are some things to know before you begin this process.
Embedding code on your site is an advanced task and is recommended for users familiar with custom coding. Contact your developer, or hire a Mailchimp Expert if you need assistance."
Leo, it's probably easier just to use a plugin. Thanks anyway!
Can you copy and paste the code here?
Make sure to highlight it and click the code button in the editor.
Here it is:
<script type="text/javascript" src="//downloads.mailchimp.com/js/signup-forms/popup/unique-methods/embed.js" data-dojo-config="usePlainJson: true, isDebug: false"></script><script type="text/javascript">window.dojoRequire(["mojo/signup-forms/Loader"], function(L) { L.start({"baseUrl":"mc.us20.list-manage.com","uuid":"276ec77b1d3b497b8946c8b5d","lid":"e2d48b52ad","uniqueMethods":true}) })</script>
Try adding that in wp_footer hook with a hook element:
https://docs.generatepress.com/article/hooks-element-overview/
Leo:
This didn't work but thanks anyway. I'm going to look for a pop-up plugin.
Robert
No problem :)
I have this same question. Mailchimp gives me this code:
<script type="text/javascript" src="//downloads.mailchimp.com/js/signup-forms/popup/unique-methods/embed.js" data-dojo-config="usePlainJson: true, isDebug: false"></script><script type="text/javascript">window.dojoRequire(["mojo/signup-forms/Loader"], function(L) { L.start({"baseUrl":"mc.us16.list-manage.com","uuid":"9a83c89ffe92a3c1e4391e9df","lid":"9f026132e4","uniqueMethods":true}) })</script>
But I'm not sure where to put it. Can I use Code Snippets to add this to my site?
I would recommend trying this solution first:
https://generatepress.com/forums/topic/adding-mail-chimps-pop-up-form-html-to-gp/#post-1098082
Thanks for your reply. I actually found an add-on to the MC4WP plugin I use. The add-on allows me to put a subscribe form as a top banner on my website.
Sounds good :)