Is it possible to check if a url address starts with for example: http://www.odsavacky.cz/blog/wpcproduct/ ?
Just use normal string searching:
// if the url begins with this string
if (window.location.href.indexOf('http://www.odsavacky.cz/blog/wpcproduct/') == 0) {
// Do what you want
}
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