Title: Elementor Doesn&#8217;t work within conditional
Last modified: June 18, 2021

---

# Elementor Doesn’t work within conditional

 *  [klivie](https://wordpress.org/support/users/klivie/)
 * (@klivie)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/elementor-doesnt-work-within-conditional/)
 * Hi there,
 * We recently resolved an issue where Elementor was returning an error on our blog
   pages.
 * “the_content area was not found in your page” when we are infact using this function.
 * After debugging we worked out the reason this was failing was because within 
   our post template we were doing a condtional <?php if (get_the_content()) : ?
   > before loading our the_content() tag.
 * Surely this should whilst using a conditional on the_content()? Especially considering
   we’re using get_the_content() within the conditional.
 * We’ve had to remove this conditional which has now added extra html / margins
   to our page template which we’d prefer to avoid.
 * Thanks

The topic ‘Elementor Doesn’t work within conditional’ 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

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

 * 0 replies
 * 1 participant
 * Last reply from: [klivie](https://wordpress.org/support/users/klivie/)
 * Last activity: [4 years, 11 months ago](https://wordpress.org/support/topic/elementor-doesnt-work-within-conditional/)
 * Status: not resolved