Quantcast
Channel: Topic Tag: forms | WordPress.org
Viewing all articles
Browse latest Browse all 3052

Code for Aweber popup form has zapped my site

$
0
0

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 all articles
Browse latest Browse all 3052

Trending Articles