Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1368053

    Hallo. Ich habe von meinem Newsletterprogramm (Mailchimp) einen Code mit dem ich ein Popup in meine WP Seite einbinden möchte. Ich nutze ein Enfold Child Theme.

    An welcher Stelle und in welcher Datei (z.B. Headerdatei) kann ich diesen Code einfügen? Und mache ich das am besten unter “Design” “Theme-Datei-Editor?”

    Vielen lieben Dank.

    #1368083

    Hey diefleischerei,
    Thank you for your question, I assume that the code you have from Mailchimp is javascript and includes the popup script, I also assume that you want this to work on every page, in this case you could add your code to this function replacing “-your code here-” and add it all to the end of your child theme functions.php file in Appearance ▸ Editor:

    function custom_mailchimp_popup_script() { ?>
      <script>
    -your code here-
      </script>
      <?php
    }
    add_action('wp_footer', 'custom_mailchimp_popup_script');

    if this doesn’t work then post your code so we can examine it to advise better.

    Best regards,
    Mike

    #1368219
    This reply has been marked as private.
    #1368266

    Hi,
    Thanks for the login, I didn’t see the script in your functions.php so I added it for you, now the script is in your site head, but it is giving a status of 403 (Forbidden),
    I found this instruction from mailchimp for this script and it says you need to Connect site in your mailchimp dashboard, did you do that?
    2022-10-10_001.png
    If you already did this then please ask mailchimp if you need to do something else because they are blocking your site.

    Best regards,
    Mike

    #1368269
    This reply has been marked as private.
    #1368272

    Hi,
    I added the code for you and it is in your head, but I still see a status of 403 (Forbidden) for this script.
    2022-10-10_002.png

    Best regards,
    Mike

    #1368274

    Ok, i think it will work now :) Thanks Mike!!!!!!!!!!!!

    #1368295

    Hi,

    Great, I’m glad that Mike could help you out. Please let us know if you should need any further help on the topic, or if we can close it.

    Best regards,
    Rikard

    #1368297

    Closed. Thanks.

    #1368309

    Hi,

    Thanks for letting us know, I’ll close this thread for now then. Please open a new thread if you should have any further questions or problems.

    Best regards,
    Rikard

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Newsletter Code’ is closed to new replies.