-
AuthorPosts
-
October 8, 2022 at 2:09 pm #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.
October 8, 2022 at 11:09 pm #1368083Hey 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,
MikeOctober 10, 2022 at 9:06 am #1368219This reply has been marked as private.October 10, 2022 at 1:22 pm #1368266Hi,
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?
If you already did this then please ask mailchimp if you need to do something else because they are blocking your site.Best regards,
MikeOctober 10, 2022 at 1:30 pm #1368269This reply has been marked as private.October 10, 2022 at 1:41 pm #1368272October 10, 2022 at 1:46 pm #1368274Ok, i think it will work now :) Thanks Mike!!!!!!!!!!!!
October 10, 2022 at 4:19 pm #1368295Hi,
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,
RikardOctober 10, 2022 at 4:22 pm #1368297Closed. Thanks.
October 10, 2022 at 5:29 pm #1368309Hi,
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 -
AuthorPosts
- The topic ‘Newsletter Code’ is closed to new replies.