Elementor Doesn’t 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.