Home>Support>Add code to Vantage theme

Add code to Vantage theme

By Anders Bergman, 9 years ago. Last reply by Daniel, 9 years ago.

Hey,
I have signed up for Aweber to add a newsletter form to my website. As part of the installation I need to add the following code to my site:

(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/83/1926195111.js”;
fjs.parentNode.insertBefore(js, fjs);
}(document, “script”, “aweber-wjs-59oiivt7a”));

I should add the code somewhere between the body-tags. I have done the same thing on other themes, and then it has worked. But in the Vantage theme, nothing happens. I have created a child theme, but I have tried both adding the code to the parent theme and create a new file and added that to the childtheme.
The file I have altered is header.php. This has been the file in other themes. Any suggestions on how to proceed?
Thanks in advance!
// Anders

URL: http://casinofakturan.se

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 9 years, 6 months ago Daniel
    Hi, I Work Here

    Hi Anders Bergman

    Unfortunately, this isn’t possible without a fair amount of custom coding. This is beyond the scope of what we can help you with on the forums, but you could hire a developer to implement this for you.

    We highly recommend using https://codeable.io/.

    Let me know if there is any other issue that you may require support for

    Thank you for your understanding

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More