- This topic has 11 replies, 4 voices, and was last updated 8 years, 9 months ago by Sakin.
-
AuthorPosts
-
December 12, 2014 at 11:17 pm #48800pnstlionMember
I have tried adding the following mailchimp pop-up signup form code to many areas of my site, dailyfantasysportspicks.com, but am still unable to get it to work.
CODE:
<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.us9.list-manage.com","uuid":"11fd044ee7ad7961dfb56746a","lid":"270d56e3d4"}) })</script>
Any thoughts?
December 13, 2014 at 12:26 am #48805SakinKeymaster@pnstlion: Where did you get that code from. I don’t get anything from that code. Also when you add this type of code in your page/post, you need to embed it in text mode. See this screenshot http://www.pinterest.com/pin/548594798332210926/
December 13, 2014 at 1:14 am #48810pnstlionMemberThanks for the quick response. That’s the code that mailchimp provided me for its pop up. I’ve already tried adding the code to:
– Custom CSS area in Theme options
– Pages (in text mode, of course)
– Posts (in text mode)
– Widget in several sections
– php files (in editor)None of those have been successful.
December 15, 2014 at 12:00 am #48858SakinKeymaster@pnstlion: I added that code in normal .html file to check in. It’s not working. It’s not the issue of Theme. It will not work in any theme. So, can you re-check the code with mailchip. Get the full code with instruction then I can help you. Usually the code should work in text mode.
December 15, 2014 at 10:51 pm #48905pnstlionMemberI copied and pasted the code above and I just confirmed that it is correct. Sadly, what I posted is the full code.
Mailchimp doesn’t provide very good support. Here are their only instructions for this:
“Copy the form code from the pop-up modal, and add the code to your site’s HTML. The best place to add the code varies from site to site, so reach out to a developer if you’re uncomfortable with modifying your site’s code.”
(from: http://kb.mailchimp.com/lists/signup-forms/add-a-pop-up-form-to-your-website)
December 16, 2014 at 2:01 pm #48935SakinKeymaster@pnstlion: I am not sure about the MailChip and I haven’t used it. I found this plugin http://wordpress.org/plugins/mailchimp . Maybe this will hep you add in.
March 10, 2015 at 2:04 am #53001LMember@pnstlion: I feel your pain here – I, too, am trying to use MailChimp’s popup subscriber form and found the same set of instructions. I THINK the code should go somewhere in functions.php, header.php, or index.php – but not sure where, exactly. That’s beyond my expertise!
@Sakin – Does that make anything clearer? This is a popup signup form and wouldn’t get dumped into a page, I don’t think. The plugin you suggest is for adding a form to a sidebar or embedding within a page which isn’t what we were aiming for exactly.
If anyone can clarify this, I’d be very grateful.
Thanks!
March 10, 2015 at 10:49 am #53031SakinKeymaster@L: So where do you exactly want to add in and also please send me your code via https://gist.github.com/ . You can paste your code there and add URL there. Then I will try to find out the best possible solution
March 10, 2015 at 8:13 pm #53051LMemberI’ve found the answer!
The code goes in the following file:
wp-content -> [your theme folder name] – index.php
Enter it below the existing .php code
Hope this helps,
Lisa
March 8, 2016 at 12:29 am #87000EmboldenAdventuresMemberhi Finally – a help site that is addressing this Mailchimp popup. I clicked the “Publish” button in my Mailchimp account and published the Subscriber popup box without my knowledge. I do not want this popup box – I want to disable it but Mailchimp automatically inserted the code into my website somewhere and now I cannot locate it. I read elsewhere that it could be in functions.php/header.php/index.php but I do not see how I can access these files. I am using WordPress and a childtheme from Studiopress. In my dashboard, I can access only certain files through Appearance->Editor. I am afraid that I may need to access these files through my cPanel. Am I about to make a fatal error? How can I disable this popup. That’s all i want to do and it’s been driving me nuts for the last day. Here is my code:
<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.us12.list-manage.com","uuid":"998c484383aee423b3e3d9616","lid":"588959030e"}) })</script>
Any help is appreciated. Thanks!
March 8, 2016 at 11:39 am #87032SakinKeymasterHello Lisa,
You shouldn’t edit the theme file directly like that. As these edits will be reverted back to original when you update the theme.
So, if you want to edit any files then build child theme and edit it. But if you just want to add Script in Header/Footer then you can simply use our Catch Web Tools plugin http://wordpress.org/plugins/catch-web-tools, activate Webmaster Tools to add scrit.
Regards,
SakinMarch 8, 2016 at 11:41 am #87033SakinKeymaster@EmboldenAdventures: Mailchip will not add code in the theme. If you have added it manually then it can be there otherwise, you need to check in your Mailchimp plugin to find out. The best solution will be to check out with Mailchip plugin support.
-
AuthorPosts
- The topic ‘Adding mailchimp pop-up signup form’ is closed to new replies.