• Resolved zhenya27

    (@zhenya27)


    Hi I am using Wilson wordpress theme. I was using Elementor on it just fine, but now when I try to create a new page I get the following error message : Sorry, the content area was not found in your page. You must call the_content function in the current template, in order for Elementor to work on this page.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Theme Author Anders Norén

    (@anlino)

    Hi @zhenya27,

    Wilson does use the function the_content() to output content for posts and pages, but it is wrapped in a get_the_content() conditional that checks whether there is any content to output before it actually calls the function. This prevents WordPress from showing an empty wrapping element if there is no content in a post or page.

    On the post or page you’re editing, try switching to the “Text” editor mode (top right tab), paste the following:   and click save. The   code is the HTML entity for a blankspace, and will tell WordPress that there is content in the post so it calls the_content(). I don’t have any experience with Elementor, but that should resolve your issue. Give it try and let me know how it goes.

    — Anders

    Theme Author Anders Norén

    (@anlino)

    Hi again @zhenya27,

    I took another think on this after reading this thread and the one by @awijasa, and I’ve decided that it’s better to remove the conditionals mentioned in my previous reply altogether. Better for the wrapping element around the_content() to be output a couple of times extra than it is for plugins relying on the_content() being there breaking. The update should be live more or less immediately.

    — Anders

    • This reply was modified 8 years, 6 months ago by Anders Norén. Reason: Formatting
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Elementor the_content’ is closed to new replies.