Title: PHP Conditional Statement
Last modified: September 1, 2016

---

# PHP Conditional Statement

 *  Resolved [Adam](https://wordpress.org/support/users/panhead/)
 * (@panhead)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/php-conditional-statement/)
 * I’d like to have the ability to show / hide content on a page (structural page
   columns in my case). Basically, the code would say, “If Elementor is active for
   this page, then…”
 * Is this something that’s already available that I’m not aware of?
 * My alternative is to just use Elementor on every general page of the site (with
   the exception of special templates).
 * Thank you!
 * [https://wordpress.org/plugins/elementor/](https://wordpress.org/plugins/elementor/)

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

 *  [yehudah](https://wordpress.org/support/users/yehudah/)
 * (@yehudah)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/php-conditional-statement/#post-7527668)
 * Sorry didn’t understand the goal you trying to achieve.
 * Can you give me more details ?
 *  Thread Starter [Adam](https://wordpress.org/support/users/panhead/)
 * (@panhead)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/php-conditional-statement/#post-7527783)
 * Never mind. I was able to solve this with CSS instead (yea!) using the `.elementor-
   page` style that’s applied to the `<body>` tag. Thank you for your help, yehudah!
 *  [yehudah](https://wordpress.org/support/users/yehudah/)
 * (@yehudah)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/php-conditional-statement/#post-7527815)
 * Great !
 * Happy you got what you want.

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

The topic ‘PHP Conditional Statement’ is closed to new replies.

 * ![](https://ps.w.org/elementor/assets/icon-256x256.gif?rev=3444228)
 * [Elementor Website Builder - more than just a page builder](https://wordpress.org/plugins/elementor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/elementor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/elementor/)
 * [Active Topics](https://wordpress.org/support/plugin/elementor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/elementor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/elementor/reviews/)

## Tags

 * [conditional](https://wordpress.org/support/topic-tag/conditional/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * 3 replies
 * 2 participants
 * Last reply from: [yehudah](https://wordpress.org/support/users/yehudah/)
 * Last activity: [9 years, 10 months ago](https://wordpress.org/support/topic/php-conditional-statement/#post-7527815)
 * Status: resolved