Which template is called by WordPress - wordpress

I am using WordPress and Elementor plugin. Now, I am trying to create new template for the header and footer part using Elementor Plugin.
When I click on Template -> Add New It's showing an error like that :
"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."
My question is which WordPress template file this element is called at that time?

I found it. It's a single.php page.

Also, you can use Query Monitor WP plugin to view which pages/templates are loading in the current screen

Related

how can i add custom post type to the front end in wordpress by using elementor?

I made a custom wordpress theme from zero and i created custom post type but i can not display custom post type in the front page by elementor .
i can make a custom page from zero and add custom post type to it without elementor but i want to learn how to add it by elementor free version to get more easiy and create my page fast .
i tried to use wpcode plugin an more than 10 plugin to convert my customcode to short code and add the short code to my page by elementor .
the code is run good but i can not edit the page by elementor later (i have error say 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 ).
Enable your cpt in this section:
Menu: Elementor -> Settings -> General -> Post Types.

How to remove "?et_blog" pagination links parameter on Divi Custom Post Type?

In my Project i'm using DIVI theme and i have use multiple custom post type like recipe, articles and so on.
and requirement is display that post in category archive page using pagination (without ajax)
but after doing code.
site.com/page/2/ (not working)
site.com/page/2/?et_blog (working)
if I remove "?et_blog" from url then page returning 404 error don't know why this adding
please let me know if any solution is there ?
eg.url structure
site.com/post_type/category/post-single
site.com/post_type/category/post-single/page/2/
I need to remove ?et_blog from URL
I'd try to add custom pagination and create shortcode function and display shortcode on DIVI builder

Wordpress custom template on every new page (Elementor)

I have wordpress and am using Elementor editor. I have added a page that is meant to be a template for each new pages. I added a block with breadcrumbs to this page. I want this page with breadcrumbs on evey new page that i create. Copying this page all the time creates problems, e.g. if I wanted to change something in this block so I must do this on every subpage. I do not know how to do it - all i want its one static page with that breadcrumbs that includes to every new page i create, and when im change something in this page, changes will appear on every page.
Help :( Photo below
https://i.stack.imgur.com/G1EyI.png
Use the "Template" block in Elementor
That is achievable with Elementor Pro using theme builder option.
Create that template as a single page template and then in display options choose to display it on all pages.
Creating a Single Page Template with Elementor Pro
Then you should use standard page editor or custom fields to put content that is then going to be rendered by the template.
Doing that will let you make changes on all pages at once by editing the template.

Not able to create Header in Elementor

I am not able to created Header in Elementor as i keep getting below 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.”
i have a one page website with header on the same page now i want to create Header Template so that i can add same Header to different pages as i have to show some post for that i want to create a second page which will show post and whenever i try to create Header i keep getting above error in elementor.
I am using Elementor Canvas for Home Page which i have created so if i need to add the_content function i am not sure where to add it?
UPDATE: It seems issue is due to ElementsKit Lite plugin as i have created menu using the same plugin and when i want to create new Header its not letting me so as there is some conflict with this plugin ElementsKit Lite
ElementsKit uses Elementor's template function. When creating a header template, are you doing it throuhgh the Elementor Theme Builder?
Wordpress Admin > Templates > Theme Builder > Add New
If you are Elementor pro. user navigate to
Templates > Theme Builder > Add New > Select type Header from the dropdown menu.
After Design the header design navigate to little top arrow beside Publish
Now click on Display Condition and add a condition for the entire site.
That's all.

setting a page as "posts page" ignores attributes like page template in Wordpress

I've selected a specific page in wordpress to display posts. I also set a custom page template to be used for this page, but is ignored.
The page is displayed using the default template.
I have no idea how to solve it, suppose it's a wordpress bug or something. Using the latest Wordpress.
Thank you
That's the default behaviour I believe.
Wordpress' template for the posts page will be index.php or home.php.
You have 2 options :
You could copy the page template file and call it home.php and make sure it includes the default loop in the markup.
or
Add in a custom loop on that particular template page (read more on inserting a loop here: http://codex.wordpress.org/Class_Reference/WP_Query)

Resources