Insert PHP function

css
29 Posts
css posted this 12 February 2019

Hi Support

I need to insert a Elementor template in my Footer!
When I try to do that I get the error:
"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."

When I search for at solution a Elementor I get this:
Have you or the theme’s developer created a custom WordPress page template for your theme that does not include the_content function? You will need to include the_content in your code to edit it with Elementor, or switch to a different theme, which often solves the problem. First, try switching to a theme like Twenty Seventeen or GeneratePress and see if your problem is solved. If you are a web developer and are developing a theme, add the_content function into the page template's code. This is the line you need to add: <?php the_content();?> If you are not familiar with where to place this code or how to add it to the page, please contact your website developer so it can be implemented properly as we cannot provide full support for that. Please note that adding this code won't enable the editing of Archive pages and Latest Post pages (these pages have to be edited via the theme builder of Elementor) and it is really simple.
Important! You do not have to add this code if you are not the developer of a theme. The majority of WordPress themes include this function in the regular pages and posts.

I have tried to insert the PHP code (<?php the_content();?>) in both the header and in the footer with the insert HTML code!
But when I try to edit the code it has change the syntax to: <p><!--?php the_content(); ?--></p> and the function is not working! (See screendump)

What am I dooing wrong?

Please return soon ;-)

/Claus

**Hi Support** I need to insert a Elementor template in my Footer! When I try to do that I get the error: "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." When I search for at solution a Elementor I get this: Have you or the theme’s developer created a custom WordPress page template for your theme that does not include the_content function? You will need to include the_content in your code to edit it with Elementor, or switch to a different theme, which often solves the problem. First, try switching to a theme like Twenty Seventeen or GeneratePress and see if your problem is solved. If you are a web developer and are developing a theme, add the_content function into the page template's code. This is the line you need to add: &lt;?php the_content();?&gt; If you are not familiar with where to place this code or how to add it to the page, please contact your website developer so it can be implemented properly as we cannot provide full support for that. Please note that adding this code won't enable the editing of Archive pages and Latest Post pages (these pages have to be edited via the theme builder of Elementor) and it is really simple. Important! You do not have to add this code if you are not the developer of a theme. The majority of WordPress themes include this function in the regular pages and posts. I have tried to insert the PHP code (&lt;?php the_content();?&gt;) in both the header and in the footer with the insert HTML code! But when I try to edit the code it has change the syntax to: &lt;p&gt;&lt;!--?php the_content(); ?--&gt;&lt;/p&gt; and the function is not working! (See screendump) What am I dooing wrong? Please return soon ;-) /Claus
Vote to pay developers attention to this features or issue.
2 Comments
Order By: Standard | Newest
em es
19 Posts
em es posted this 3 weeks ago

Did you fix this? Same problem here...

Did you fix this? Same problem here...
Support Team
Support Team posted this 3 weeks ago

Hello Marcin,

Themler's function for content is named differently and most likely Elementor won't be working with it at all.

Gina
Themler Support

Hello Marcin, Themler's function for content is named differently and most likely Elementor won't be working with it at all. Gina Themler Support
You must log in or register to leave comments