Hello,
I would like to add the code for the mailchimp popup so that it is applied to the entire site as opposed to going to each page and post and adding it individually. How do I go about this with Enfold?
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.us15.list-manage.com”,”uuid”:”a209e111b6825f1134ec6b30a”,”lid”:”41930b869b”,”uniqueMethods”:true}) })</script>
Thank you,
Duncan
Hey murdochduncan,
You can add the code in the footer of the page with this code:
// add mailchimp code to the footer
function ava_custom_maichimp_script(){
?>
<script>
//your code here
</script>
<?php
}
add_action('wp_footer', 'ava_custom_maichimp_script');
Best regards,
Victoria