Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1003447
    Dmadiroe
    Participant

    Dear Xtheme Team,
    I don’t know where exactly to insert the code provide by mailchimp.
    Code provided:

    <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.us11.list-manage.com”,”uuid”:”041f6cfa4d1045d765565d0657b”,”lid”:”878782d0324″}) })</script>

    Thanks!
    Best Regards,
    Dan

    #1003589
    Rue Nel
    Moderator

    Hey Dan,

    Thanks for writing in! What you are trying to accomplish requires a template customization, we would like to suggest that you use a child theme. This allows you to make code changes that won’t be overwritten when an X update is released. After your child theme is setup, please review how we recommend making template changes in Customization Best Practices.

    Once you already have your child theme active and ready, please insert this following code in your child theme’s functions.php file.

    function add_custom_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.us11.list-manage.com","uuid":"041f6cfa4d1045d765565d0657b","lid":"878782d0324"}) })</script>
    
    <?php }
    add_action('wp_footer', 'add_custom_code');

    Please let us know if this works out for you.

    #1013540
    Dmadiroe
    Participant

    Thank you!
    Sorry for the late reply.
    I will try it and let you know the results in this thread.

    Best Regards,
    Dan

    #1013927
    Prasant Rai
    Moderator

    Let us know how it goes.

    Thanks.

  • <script> jQuery(function($){ $("#no-reply-1003447 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>