Documentation › Adding JavaScript to Your WordPress Webpages

Adding JavaScript to Your WordPress Webpages

Headway enables custom JavaScript on your website.

Method 1: Adding Scripts to the Webpage Header or Footer

Some JavaScript needs to be placed at the top or bottom of the page, such as analytics scripts. References to .js files also must be added using
these steps.

  1. In the WordPress admin panel, click Options in the Headway menu.
  2. Click the Scripts/Analytics tab.
  3. Write or paste your script(s) in the header and footer boxes as needed.
  4. Click the Save Changes button.

Method 2: Adding Scripts on the Webpage

If you want to add JavaScript that will render content or provide certain functionality, use a custom code block in the Visual Editor.

  1. In Grid Mode, draw a block in the grid.
  2. In the options panel, click Custom Code.
  3. With the Content subtab selected, click the pencil icon.
  4. Write or paste your script.
  5. Click the Save button.

This article was last updated for Headway version 3.8.3

Copyright © 2016 Vesped Inc. All Rights Reserved. Proudly Powered by Headway and WordPress