How to load only on a page with certain word ending, but not subpages
-
Hello,
How to write the regex to offload a plugin for all pages, but to load only on pages that ends with certain keyword.. but not the subpages of that..
for example;
page 1: https://domain.com/contact-us/
page 2: https://domain.com/contact-us/thank-you/
page 3: https://domain.com/contact-us/thank-you/visit-again/
I want to offload a plugin on all pages but want to load on page2, thank-you page only.
When I am using /thank-you/ or #/thank-you/#, in both cases, the plugin is loading for both page2, and page3… but I want it to load only on page2 and not on page1, and page 3..
Please help.
- The topic ‘How to load only on a page with certain word ending, but not subpages’ is closed to new replies.