Wsparcie » Motywy » dodanie the_conctent

  • Cześć,
    Czy ktoś z was wie gdzie w szablonie należy dodać polecenie

    <? Php the_content (); ?> ?

    Pokazało mi coś takiego na stronie edytowanej za pomocą Elementora, rzecz w tym, że nie mogę edytować BLOG’a

    This article explains what to do if you get the 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.”
    What is the_content, and why does Elementor require it?

    The 'the_content’ is a WordPress function that gets the content from the database and prints it on the screen. Because Elementor’s content replaces the content of the page, if this function is not called for, then Elementor cannot work. Read more on the_content function on WordPress.org.
    The common reasons for the_content function not to be called
    There are 3 common occurrences that may be the cause why the_content will not be called:
    Sometimes the theme has a front page template that is already pre-built and does not include content from the page. This is most common on free WordPress themes.
    Custom made page templates that do not include the_content.
    WooCommerce product pages that do not include the_content.
    Manual solution

    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • W pętli (THE LOOP – pod tym terminem znajdziesz więcej informacji cóż to jest) 🙂
    Ale coś mi się zdaje, że Twój problem sięga trochę głębiej, bo jeżeli korzystasz z motywu np. z repozytorium motywów WP, to taki motyw ma tę funkcję zaimplementowaną tam gdzie trzeba.

    Thread Starter xklimasx

    (@xklimasx)

    Niestety nic mi to nie mówi, poza tym czy musi być jakieś dłuższe polecenie?

    A co to za Elementor, który chce Ci podmienić funkcję the_content na własną.
    Czy możesz to wyjaśnić?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Temat ‘dodanie the_conctent’ jest zamknięty na nowe odpowiedzi.