Scenario
I have a following customized format for the website with Woocommerce.
<?php if(is_shop()) {?>
There are certain css styles, JS options used for this particular page<?php } if(is_front_page()) { ?>
Same as above with different css animations used or certain classes when on home page of the site
Question
Now, I want to use some specific jQuery options such as .Delay(), Hide(), & Show() on pages other than Shop & Home page
However, If I simply add the jQuery outside the options 1
& 2
mentioned above .. this gets applied to entire website -- overriding options specified for is_shop
I think if we can exclude pages then I can exclude these 2 pages above. Writing is_page (array)
would be too tedious for hundreds of pages.
How can we exclude certain WP pages (in my case only 2)? Or should I re-format the page using if else
& will it work?
Thanks in advance.