WordPress
Articles and projects relating to 'WordPress'

Include JavaScript files on certain WordPress pages

If you need to include javascript on certain WordPress pages then add the following logic in the header.php
Here I am registering and queuing up the wordCounter JavaScript file if the current page title is ‘wordCounter jQuery Plugin’.