How to add scripts only in Anspress pages
So I want a JavaScript file to be loaded in all Anspress pages but I am not web developer and so I do not know how to do that. Currently that script is loaded through the theme and so in all pages. I do not know what file can I edit to do that. Can someone help me?
Thanks
Rahul Aryan selected answer
Hello,
Please use below code to check if current page is anspress:
if(is_anspress()){ // Your enqueue script }
Rahul Aryan selected as best answer
Try this plugin, i does work great for me.