My theme will not load footer.php or sidebar.php…
-
I tried loading the theme I built onto a live site of mine that I will not be renewing. Everything looked fine except the sidebar and footer did not load on single post pages that use single.php. I also used All In One WP Migration to pull my second site down to local dev and I had the same problem there.
I have my theme installed on my new site and there are no problems at all. I installed the plugin Show Current Template and there is something off…
1. On my live new site using my theme with no errors, hovering over the Show Current Template admin bar link you can see every template being loaded including template-parts.
2. In my local dev for the site mentioned in #1 directly above, the sidebar and footer show but hovering over the Show Current TEmplate link does not list ANY templates at all.
3. In the local dev that have the content I pulled down with All in One, I see 2 different things for the Show Current Template link:
– 3a) no templates listed for pages that DO have a footer and sidebar
– 3b) template files listed for single.php that do NOT have a sidebar or footer loaded and those files are not listed???Very confusing. I took some screenshots and loaded them into my media library of one of my sites since I don’t know how else to load an image: https://everyguitarchord.com/wp-content/uploads/2021/01/problem-with-single.php_.png
NOTE: That link is not the page I need help with!
Any thoughts on why this would happen? I suspect the issue is either:
1. My free theme OceanWP with all their styles and scripts
2. Elementor page builder
3. All the info that was pulled down with All In One Migration, and therefore maybe fully populated databases.But for the local dev that has no issues, I forget how I did it but I pulled in dummy content from a .XML link and I guess I used the plugin WordPress Importer plugin. So that populated my databases. Why does my live site or local dev with live data data cause this problem? I don’t even know how to start looking for the issue.
- The topic ‘My theme will not load footer.php or sidebar.php…’ is closed to new replies.