Javascript only load on specific pages

Hello there,

I noticed that payhip.js is loading on all of my website pages, but I want it on specific pages. How can I do that?

I want only payhip.js to load on these pages:

Since that’s the only pages that actually needs payhip.js

Hello Katarina,

Thanks for writing to us.

Regretfully there is no option to conditionally load the external JS file. It would require custom development, I would suggest you please contact a developer who can assist you with your concerns or you can subscribe to One where customization questions are answered. Please note we don’t provide custom development. It is out of the support scope.

Alternatively, in case you have an idea about PHP coding you check this article to learn more about how to load the JS file to specific pages.
https://www.fldtrace.com/load-javascript-on-specific-pages-in-wordpress

Hope it helps
Thanks for understanding

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.