Tagged: elementor
- This topic has 32 replies, 13 voices, and was last updated 4 years, 5 months ago by Theme Horse Support Team.
-
AuthorPosts
-
June 14, 2017 at 8:57 am #51759eileen.abertParticipant
Hello,
I just installed the PlugIn “Elementor” and I am trying to use it. Unfortunetly I get message that the “the_content” function is missing in my current template. Can you tell me how to insert it in the page template´s code so I can use the PlugIn?
Best,
June 14, 2017 at 10:24 am #51762Theme Horse Support TeamKeymasterHi eileen.abert,
Could you clarify which current template are you using? Actually we are not getting what you mean. Do you mean to add it in business template? Business Template is our default template. You can obtain as shown in demo using business template.
the_content() function code is used to display the content written written in editor. If you want to display your content from the editor then use default template instead of using business template.Thank you
June 14, 2017 at 11:06 am #51763eileen.abertParticipantHi Support Team,
currently I am using the Ambition Pro Template. This is what the PlugIn tells me:
“The Content Area Was Not Found in Your Page
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:
1.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.
2.Custom made page templates that do not include the_content.
3.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 as we cannot provide full support for that.”
So far I dont see how the Business Template is connected to this Problem. It doesnt Change a Thing when I Switch between templates. The demo Version is not working or explaning anything to me. So far I dont like the template.
Best
June 14, 2017 at 11:38 am #51764Theme Horse Support TeamKeymasterWe have called
the_content();
in our default template. If you are using business template then we are using our own widgets. If you want to addthe_content();
in business template then go to theme folder -> inc -> structure -> content-extension.php on line no 965 andthe_content();
function code just beforedynamic_sidebar( 'ambition_business_page_sidebar' );
function code.Thank you!
June 14, 2017 at 12:11 pm #51767eileen.abertParticipantAfter doing that the entire site doenst work anymore and I get this note:
“Parse error: syntax error, unexpected ‘<‘, expecting elseif (T_ELSEIF) or else (T_ELSE) or endif (T_ENDIF) in /homepages/18/d681122702/htdocs/testseite/wp-content/themes/ambition-pro/inc/structure/content-extensions.php on line 973”
June 14, 2017 at 12:16 pm #51768eileen.abertParticipantNow I cant reach the site anymore. I always get this note. What the hell is going on?
June 15, 2017 at 5:06 am #51777Theme Horse Support TeamKeymasterhi eileen.abert,
You added
the_content();
functions incorrectly. ok what you do is go again theme folder -> inc -> structure -> content-extension.php on line no 965 remove their functions from line no 965-978 and add below code.add_action( 'ambition_business_template_content', 'ambition_business_template_widgetized_content'); /** * Displays the widget as contents */ function ambition_business_template_widgetized_content() { ?> <div id="main"> <?php // Calling the footer sidebar the_content(); if( is_active_sidebar( 'ambition_business_page_sidebar' ) ) : dynamic_sidebar( 'ambition_business_page_sidebar' ); endif; ?> </div><!-- #main --> <?php }
Thank you!
June 22, 2017 at 9:57 am #51879eileen.abertParticipantHi,
thank you very much for the help. Now the site works again.
Best
June 22, 2017 at 10:47 am #51880Theme Horse Support TeamKeymasterThat’s great eileen.abert,
Thank you
August 8, 2017 at 9:06 am #52641hoanganhdneParticipantHi Support Team
i am using Acesspress Store theme and i just installed plugins Elementor but I get message that you must call “the conten” function in the current template in order for Elementor to work on this page
please help me. what must i do in this case?
ThanksAugust 8, 2017 at 9:58 am #52642Theme Horse Support TeamKeymasterHi hoanganhdne,
Sorry we haven’t developed any Accesspress store theme. Please contact to the main author of Accesspress store theme.
Thank you!
August 29, 2017 at 4:16 pm #53027verrecchiaaParticipantHello!
I’m having the same “the_content” issue with my theme which is OceanWP. I’m unsure of where to place the code and could use some assistance. It’s also a child theme, not sure if that creates any issues.
Thank you
August 30, 2017 at 6:08 am #53034Theme Horse Support TeamKeymasterHi verrecchiaa,
Sorry we haven’t developed any OceanWP theme. Please ask support to the main author.
Thank you!
September 8, 2017 at 12:03 pm #53174anne.villafrancaParticipantHi. I currently have the Hestia Theme but when I am about to edit using Elementor Page Builder I received this error message:
“You must call the_content function in the current template in order for Elementor to work on this page”.
Please help. Thanks
September 8, 2017 at 12:13 pm #53175Theme Horse Support TeamKeymasterHi anne.villaf,
Sorry we have not developed this Hestia theme. You have to contact to the main author.
Thank you!
-
AuthorPosts
- You must be logged in to reply to this topic.