1. Home
  2. Docs
  3. Customizing
  4. Adding Custom Scripts (JavaScript)

Adding Custom Scripts (JavaScript)

Follow these simple steps in order to add JavaScript code snippets to your WordPress website:

  1. Login to your admin WordPress account.
  2. View the page of your site that the JavaScript would apply to.
  3. Select ‘Customize’ in the admin bar (found at the top of your browser).
  4. Once the Customizer settings open, select ‘Additional Scripts’.
  5. There are currently 3 areas that you can add JavaScript code to: Header, Footer and Body.
    1. Header: This will load within the <head> tags. Google Tracking Code Goes Here.
    2. Footer: This will load within the <footer> tags.
    3. Body: This will load before the closing </body> tag.
  6. Select ‘Publish’ button to save your changes.

Please remember to include your <script> tags when adding in JavaScript to your WordPress website. 

Tags ,