• Resolved meurergroup1

    (@meurergroup1)


    I tried to add Aweber javascript for a popup form to the functions.php section of the Twenty Seventeen theme and now get this error message, even after removing the Aweber code without disturbing the original php.

    Parse error: syntax error, unexpected ‘<‘ in /home1/ideation/public_html/reimaginingpolitics.org/wp-content/themes/twentyseventeen/functions.php on line 584

    I had pasted in the Aweber code at the end of the php, after the final characters in the original functions.php code. So I did not disturb the original code when I removed the Aweber code. Here is the code for the Aweber form.

    <div class=”AW-Form-714641207″></div>
    <script type=”text/javascript”>(function(d, s, id) {
    var js, fjs = d.getElementsByTagName(s)[0];
    if (d.getElementById(id)) return;
    js = d.createElement(s); js.id = id;
    js.src = “//forms.aweber.com/form/07/714641207.js”;
    fjs.parentNode.insertBefore(js, fjs);
    }(document, “script”, “aweber-wjs-d82ln7t5m”));
    </script>

    Any suggestions / solutions appreciated.
    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Code for Aweber popup form has zapped my site’ is closed to new replies.