 
	
		Tagged: html, Mail Chimp
- 
		AuthorPosts
- 
		
			
				
January 19, 2018 at 8:18 am #899551I am trying to add this HTML code to various pages on my sign for newsletter sign up but struggling to get it to work. If I add it to default editor text page it clears out my advance editor work. Other suggestions on this forum suggested using code block but that does nothing as well. <script type=”text/javascript” src=”//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”:”85b2cb224ddab2b741e686898″,”lid”:”80ac196a26″}) })</script> January 20, 2018 at 6:31 am #900000Hey guruledc, If it doesn’t work with the code block then you might have to add it using a function in your functions.php file: function guruledc_add_custom_code(){ ?> <script type=”text/javascript” src=”//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”:”85b2cb224ddab2b741e686898″,”lid”:”80ac196a26″}) })</script> <?php } add_action('wp_head', 'guruledc_add_custom_code');Best regards, 
 RikardFebruary 10, 2018 at 5:04 am #910457Thank you very much Rikard, it worked perfectly when added to the very end of the functions.php file inside wp-includes. I only added “{” at the begging and “}” at the end of the code you gave. Example: 
 {
 function guruledc_add_custom_code(){ ?>
 <script type=”text/javascript” src=”//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”:”85b2cb224ddab2b741e686898″,”lid”:”80ac196a26″}) })</script>
 <?php }
 add_action(‘wp_head’, ‘guruledc_add_custom_code’);
 }February 12, 2018 at 4:14 am #910885Hi, Great, glad you got it working and thanks for sharing your solution :-) Please let us know if you should need any further help on the topic or if we can close it. Best regards, 
 RikardMarch 13, 2018 at 4:15 am #925848Rikard, I’m having the exact same problem. I think I’m misunderstanding your directions above. I’m trying to add the Mail Chimp slider to my home (static) page. I tried adding the following to the very end of my functions.php inside my wp-includes file but it didn’t do anything. { 
 function guruledc_add_custom_code(){ ?>
 <script type=”text/javascript” src=”//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”:”dbe48cd19b069814f61930827″,”lid”:”1d2d4c600f”}) })</script>
 <?php }
 add_action(‘wp_head’, ‘guruledc_add_custom_code’);
 }Here’s the code I received from Mail Chimp: <script type=”text/javascript” src=”//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”:”dbe48cd19b069814f61930827″,”lid”:”1d2d4c600f”}) })</script> Thanks in advance. March 13, 2018 at 2:13 pm #926078Hi Solan, The functions.php file is located either in your parent- or child-theme folder, not in wp-includes. Could you try adding it there instead and remove the code from the file in wp-includes please? Best regards, 
 RikardMarch 13, 2018 at 4:19 pm #926131I’ll make the change. Also, do I need to add any other code to the site or just the code above at the very bottom of my functions.php file? March 13, 2018 at 8:31 pm #926231Rikard, Thanks for your follow up. I removed the code from the wp-includes functions.php file and added it to the functions.php inside my theme folder (screen shot attached) but nothing happens. What am I missing? Thanks. - 
		This reply was modified 7 years, 7 months ago by Solan. 
 March 14, 2018 at 6:54 am #926429Hi Solan, Thanks for the feedback. Please send us a temporary admin login and login URL so that we can have a closer look. You can post the details in the Private Content section of your reply. Best regards, 
 RikardMarch 15, 2018 at 7:39 pm #927614Info attached below. FYI: I’m trying to add the Mail Chimp Pop Up to my Home page. Here’s the MC code: <script type=”text/javascript” src=”//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”:”dbe48cd19b069814f61930827″,”lid”:”1d2d4c600f”}) })</script> March 16, 2018 at 9:00 pm #928269Hi, Just Install And place the code there from the plugin. Easier work ;) Best regards, 
 BasilisMarch 20, 2018 at 7:52 pm #930092Basilis, thanks for your reply. Your solution seems to be the way to go but I can’t get it to work. Can you please take a look? I sent over login info. Here is the code from Mialchimp: <script type=”text/javascript” src=”//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”:”dbe48cd19b069814f61930827″,”lid”:”1d2d4c600f”}) })</script> Thanks, Solan March 21, 2018 at 9:30 pm #930870Hi, I can see it loading properly – but behind some elements. 
 I think that the modal is getting pushed and it would require some custom CSS to work properly.Best regards, 
 BasilisMarch 21, 2018 at 9:36 pm #930880Basilis, thanks for your reply. I think what you saw loading was a popup I was playing with using the Layer Slider. Would you mind taking another look? Sorry for the confusion. Thanks. March 23, 2018 at 2:25 am #931730Hi, The popup script is not going to work without the following modifications. This thread will help. // https://kriesi.at/support/topic/mailchimp-pop-up-signup-form/#post-861765 If you want to use the lightbox instead, please follow this thread. // https://kriesi.at/support/topic/lightbox-for-mailchimp-form/#post-582439 Best regards, 
 Ismael
- 
		This reply was modified 7 years, 7 months ago by 
- 
		AuthorPosts
- You must be logged in to reply to this topic.
