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 solutionAdd 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.
- Temat ‘dodanie the_conctent’ jest zamknięty na nowe odpowiedzi.