How Do I Add JavaScript to My WordPress Header?

Adding JavaScript to your WordPress header is easy. Just go to the “Header” tab in your WordPress admin area, and click on the “Add an HTML element” button.

In the “Add HTML Element” window, you will need to provide the URL to your JavaScript file. Once you have added the file, you will need to paste the following code into the “Content” field:.

.

Clicky