Can I add custom JavaScript?

Version 2.7.1 and higher allows you to include your own JavaScript. If you need to add some custom scripts this is the preferred method and will save you from losing any customisations you make when you update to newer versions of Task Rocket.

  • Place your custom js file in the theme directory. Let’s call is my-custom-javascript.js
  • Go to WordPress admin -> Task Rocket settings -> Other tab and look for the Custom JS field
  • Type my-custom-javascript.js into the field
  • Hit the Save Changes button

Now you can edit my-custom-javascript.js to include your own custom JavaScript in the Task Rocket theme.

Notes:

  • This will only affect the front-end.
  • There is no need to include the opening and closing <script> tags in your js file.

❮ Go back to Task Rocket FAQ & Guide