Additional JavaScript

Last updated 10 days ago

The CONJ PowerPack companion plugin comes with a built-in feature that allows you to add custom JavaScript snippet to your theme directly from the plugin’s options panel.

There are many reasons why you might want to add custom JavaScript snippet to your WordPress powered webshop, and there are also a variety of ways in which you can implement it.

However, you have to be very careful about how you are planning to append your custom JavaScript to the theme since the wrong implementation of any JavaScript snippet can do more harm than good.

Fortunately, the CONJ powerpack plugin offers you a convenient editor–outside of the footer.php file–where you can add all your custom scripts. Just be aware that the additional JavaScript code editor is only ideal if you’re trying to make site-wide changes with JavaScript.

Follow the steps below to insert your custom JavaScript snippet:

Adding custom JavaScript to your theme directly from the CONJ PowerPack’s options panel
  1. Login to the your WordPress Dashboard.

  2. Click the Conj PowerPack menu.

  3. From the sidebar on the left, select the Additional JavaScript tab.

  4. Locate the code edior field and paste in your custom JavaScript snippet.

  5. Click the Save Changes button.

The content of additional JavaScript code editor is automatically wrapped with a script tag to ensure that the output of the snippet is working properly and as expected.