Archived topic
edit the page.php file
7 replies · Started by Ivan on February 16, 2021
Hi,
I am trying to edit my internal blog with the Elementro builder.
What happens is that it gives me 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."
A possible solution is to add the function of specifying the content in the file in charge of creating the theme pages that we are using. For this we go to Appearance> Editor and add the following PHP code to the page.php file:
<? php the_content (); ?>
Can I modify this file?
If not, where can I put the indicated code?
Do you know the problem indicated by me? Is there any other solution?
Thx,
Hi there,
what page are you trying to edit with Elementor ? Is it your Blog page ?
Hi David,
The web is https://emcolimpiezas.es/ and inside I want to have a blog to publish articles.
Creating the Blog page with the slug ../blog (https://emcolimpiezas.es/blog/) does not allow me to modify said page with Elementor.
So I have created another page "Blog" with the slug ../blo https://emcolimpiezas.es/blo/, this way I can modify it with Elementor, but of course, this is not Blog Page
So the Blog page ( used to display your Latest Posts ) cannot be edited as its not a regular page.
To build one in Elementor requires they're Pro plugin that provides the option to build blog/archive pages or to add a Posts Widget to a static page.
Ok, so I understand that as a Blog page Ican't.
Is the solution indicated by me before reliable?
"For this we go to Appearance> Editor and add the following PHP code to the page.php file: <? Php the_content ();?>"
No - that will just break things.
If you want to build it with Elementor then you need their Pro version.
Understood! :)
Thank you,
You're welcome