Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1024313

    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

    #1025445

    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

    #1027726

    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

    #1027876

    Hi,

    Alright. Glad that you found a workaround. :)

    Best regards,
    Ismael

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