How to load javascript on custom page template?

Posted by Prem Tiwari | Updated on

You can use is_page_template to check if you template is being used and load your scripts based on that ex:

Add this code to your functions.php file:


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers