[Resolved] edit the page.php file

Home Forums Support [Resolved] edit the page.php file

Home Forums Support edit the page.php file

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1659927
    Ivan

    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,

    #1660120
    David
    Staff
    Customer Support

    Hi there,

    what page are you trying to edit with Elementor ? Is it your Blog page ?

    #1660509
    Ivan

    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

    #1660582
    David
    Staff
    Customer Support

    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.

    #1660608
    Ivan

    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 ();?>”

    #1660612
    David
    Staff
    Customer Support

    No – that will just break things.
    If you want to build it with Elementor then you need their Pro version.

    #1660637
    Ivan

    Understood! 🙂
    Thank you,

    #1660868
    David
    Staff
    Customer Support
Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.