- This topic has 16 replies, 4 voices, and was last updated 2 years, 5 months ago by David.
May 9, 2018 at 4:44 pm #571882Gillian
I’ve was trying to build a single post template using Elementor Pro and kept getting
Sorry the content area was not found on your page – you must call “the_content” function in the current template ….
I could use Add New to add templates for Page, Section, Header and Footer but not Single Post or Post Archive.
By process of elimination, I found this only happens when GP Prem is activated.
Any ideas on how to resolve the conflict?
ThanksGeneratePress 2.1.1GP Premium 1.6.2May 9, 2018 at 6:03 pm #571917Lyle
If you are getting that error message, you are not going about the correct way 🙂
Using the latest versions of everything (GP 2.1.1, GPP 1.6.2, Elementor 2.0.11, Elementor Pro 2.0.5) I had no problem creating single post, archive and category archive templates.
For a single post template:
– Dashboard > Elementor > My Templates > Single (tab) > Add New
– name the template > Create Template
– select a template from the Blocks or click the X and build one from scratch using the Theme Elements widgets, Post Title and Post Content at a minimum
– Publish > Add Condition
– click the All Singular dropdown and select All Posts
– done 🙂
Tutorials and tips for GeneratePress, WP Show Posts, WordPress and ElementorMay 10, 2018 at 3:39 am #572189Gillian
Lyle – That’s what I am doing. Can’t get past the Create Template step with GP Prem activated. Deactivate GP Prem and there’s not a problem. I can add any of the template options with GP Prem activated using the method you’ve outlined except for Single and Archive.
I’ve got a work round which is to deactivate GPPrem, create the single post template and then reactivate GPPrem, but not really satisfactory. I need to get to the bottom of what’s causing the problem.May 10, 2018 at 3:42 am #572190Lyle
Hmm, that is odd. It just worked for me 🙂
Perhaps there is another plugin conflict somewhere.
Tutorials and tips for GeneratePress, WP Show Posts, WordPress and ElementorMay 10, 2018 at 3:54 am #572196Gillian
NO – it’s definitely GP Prem. If I deactiavte everything except Elementor, ElementorPro and GP Prem I get the same message.May 10, 2018 at 4:07 am #572205Lyle
I will have to disagree and that it is not GPP as GPP is working for me and not for you 🙂
It could very well be some setting in your GPP setup, perhaps in GP Hooks or some other settings.
To verify, you could use the GPP Reset feature to test, after of course making a backup.
Tutorials and tips for GeneratePress, WP Show Posts, WordPress and ElementorMay 10, 2018 at 5:22 am #572271Gillian
I had two hooks in place, so I disabled them and tried again. This time I was able to get through to edit with elementor but when I came to Publish the template I got a 403 error.
I’ll try resetting GPP one element at a time and see what happens then. But it will have to wait to later – now I’ve got the template I want I’ve got about 60 posts to get up ready for proof reading before site goes live.May 10, 2018 at 6:26 am #572322DavidStaffCustomer Support
the 403 could be a persmissions issue, maybe something in your settings that your host can advise upon. Personally i would advise against designing a single post template on a site that already has live content.
If there is a particular style single post you are looking for then maybe we can advice on how to achieve that with the GP template.
The problem we have is when another plugin takes control of that template it goes out of scope and makes it difficult for us to advise. I will do some tests in the meantime to see if i can replicate the issues you are having. But it may be advisable to raise a support ticket with Elementor as well.May 10, 2018 at 6:54 am #572348Gillian
David, I’ve raised a support ticket with Elementor and they say because it only happens when GP Prem is activated, it’s not something they can help with.
I have full access to the hosting permissions.
The template I need is for one category of posts only and adds an Elementor section above the Elementor section which forms the ‘footer’ on all posts and pages. The ‘footer’ section is called using a shortcode in the before footer content hook. I have a shortcode for the additional section.
The end footer bar with the copyright is set in GP.May 10, 2018 at 7:25 am #572370DavidStaffCustomer Support
this is odd, as i have been unable to replicate the issue. You can use a Hook with a conditional like so:
<?php if ( in_category( 'my-category' ) && is_single() ) : ?> <?php echo do_shortcode( '[elementor-template id="XXX"]' ); ?> <?php endif; ?>May 10, 2018 at 7:29 am #572373Gillian
I’ll try that over the elementor template. is the ‘my-category’ the category number or slug?May 10, 2018 at 7:33 am #572377DavidStaffCustomer SupportMay 10, 2018 at 7:49 am #572453Gillian
Thanks David – that works.
Just for future reference, what would the conditional php be if I was using a custom post type rather than the standard single post.May 10, 2018 at 8:07 am #572471DavidStaffCustomer SupportMay 10, 2018 at 9:08 am #572525Gillian
- You must be logged in to reply to this topic.