Tagged: ,

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #899551

    I 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>

    #900000

    Hey 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,
    Rikard

    #910457

    Thank 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’);
    }

    #910885

    Hi,

    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,
    Rikard

    #925848

    Rikard,

    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.

    #926078

    Hi 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,
    Rikard

    #926131

    I’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?

    #926231

    Rikard,

    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.

    Screenshot

    • This reply was modified 6 years, 4 months ago by Solan.
    #926429

    Hi 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,
    Rikard

    #927614

    Info 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>

    #928269

    Hi,

    Just Install

    And place the code there from the plugin. Easier work ;)

    Best regards,
    Basilis

    #930092

    Basilis, 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

    #930870

    Hi,

    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,
    Basilis

    #930880

    Basilis, 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.

    #931730

    Hi,

    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

Viewing 15 posts - 1 through 15 (of 15 total)
  • You must be logged in to reply to this topic.