Hello,
I went through your link https://kriesi.at/support/topic/where-to-embed-code-snippet-for-popup-signup-form/?login_error
Tried all the suggestions, but none of them work. I don’t want to use a plugin to do the job.
Did a phpcode check on the suggested code mentioned in the above link. There is a code error.
function custom_code_mc(){
?>
// YOUR CODE GOES HERE
<?php
}
add_action('wp_footer', 'custom_code_mc');
Here’s the result from the code check: PHP Syntax Check: Parse error: syntax error, unexpected ‘}’, expecting end of file in your code on line 3
Any suggestion on how to fix the code and/or how to embed the mailchimp script so the signup form pops up on the home page?
Thanks,
Nik
Hey Nik,
Thank you for using Enfold.
That code is valid but you have to remove the comment part (// YOUR CODE GOES HERE). How did you add the script? Please post the actual code on pastebin.com.
Best regards,
Ismael
Hi Ismael,
Thanks for getting back. The code worked when I used it in the code snippet plugin, but not when inserted directly into the child functions php.
Issue resolved.
Cheers
Nik