Title: Condition: exclude a page
Last modified: August 22, 2016

---

# Condition: exclude a page

 *  Resolved [Darryn](https://wordpress.org/support/users/darrynvanhout/)
 * (@darrynvanhout)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/condition-exclude-a-page/)
 * Hi,
 * I would like to impliment this accross all pages of a site however exclude from
   a couple of the pages.
 * How can I exclude from a particular page?
 * [https://wordpress.org/plugins/scroll-triggered-boxes/](https://wordpress.org/plugins/scroll-triggered-boxes/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Danny van Kooten](https://wordpress.org/support/users/dvankooten/)
 * (@dvankooten)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/condition-exclude-a-page/#post-5250195)
 * Hi Darryn, I would use the following manual condition for that.
 *     ```
       ! is_page( 'checkout' )
       ```
   
 * That will make the box show up on all pages except for the page with `checkout`
   as slug.
 * Hope that helps!
 *  Thread Starter [Darryn](https://wordpress.org/support/users/darrynvanhout/)
 * (@darrynvanhout)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/condition-exclude-a-page/#post-5250196)
 * Thanks Danny.
 * If I wanted to hide on multiple pages. How would I do this?
 * /solar-quotes/ & /solar-quotes-3/
 * I have tried this: ! is_page( ‘solar-quotes’&’solar-quotes-3’) however this does
   not seem to hide on the ‘solar-quotes-3’ page.
 * Thanks
 *  Plugin Author [Danny van Kooten](https://wordpress.org/support/users/dvankooten/)
 * (@dvankooten)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/condition-exclude-a-page/#post-5250263)
 * Hi Darryn,
 * You can use the following to hide on multiple pages.
 *     ```
       ! is_page( 'solar-quotes' ) && ! is_page( 'solar-quotes-3' )
       ```
   
 * You can continue like that by just adding more exclusion statements. Say you 
   want to hide it on `some-other-page` as well:
 *     ```
       ! is_page( 'solar-quotes' ) && ! is_page( 'solar-quotes-3' ) && ! is_page( 'some-other-page' )
       ```
   
 * Hope that makes sense!
 *  Plugin Author [Danny van Kooten](https://wordpress.org/support/users/dvankooten/)
 * (@dvankooten)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/condition-exclude-a-page/#post-5250264)
 * Hiding on all subpages of a given page is a bit more difficult but I would use
   the following for that.
 * This checks if the requested URL does not contain `/my-account/`.
 * Use the following manual condition for this.
 *     ```
       stristr( $_SERVER['REQUEST_URI'], '/my-account/' ) === false
       ```
   
 * To use this in combination with the other rules you set-up, use this.
 *     ```
       ! is_page( 'solar-quotes' ) && ! is_page( 'solar-quotes-3' ) && ( stristr( $_SERVER['REQUEST_URI'], '/my-account/' ) === false  )
       ```
   
 * Hope that helps!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Condition: exclude a page’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/scroll-triggered-boxes_a0af9c.svg)
 * [Scroll Triggered Boxes](https://wordpress.org/plugins/scroll-triggered-boxes/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/scroll-triggered-boxes/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/scroll-triggered-boxes/)
 * [Active Topics](https://wordpress.org/support/plugin/scroll-triggered-boxes/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/scroll-triggered-boxes/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/scroll-triggered-boxes/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Danny van Kooten](https://wordpress.org/support/users/dvankooten/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/condition-exclude-a-page/#post-5250264)
 * Status: resolved