How to add scripts only in Anspress pages

Solved4.80K viewsGeneral
0

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

selected answer
0

Hello,

Please use below code to check if current page is anspress:

if(is_anspress()){
    // Your enqueue script
}
selected as best answer