I have a script that loads a music player but I only want to run it on my podcasts page.
It should go something like if window.location is example.com/podcasts then <script> blah </script>
How can I do this? Thanks!
The javascript would be:
<script type="text/javascript">
if(window.location.pathname == '/podcast') {
// script body here
}
</script>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With