I am working on a child theme that I am building on top of twentyseventeen. Everything was displaying as intended within my page templates. However, if I switch between my theme to another and then back, my site's pages become blank after the markup in the header.
This is what my page looks like with placeholder data.
When I go into the Wordpress admin and click on Appearance this is what my page looks like.
I've double checked, and the page is still set to the correct page template in my child theme. Between these steps, I haven't done anything to the codebase, and so I believe this is something being stored in the database, in combination with some piece of code I'm neglecting.
This issue is very buggy, and has also happened now when I do a fresh install of the database and activate theme, and also when I click on Appearance, but the only way I can recreate the issue consistently is if I : a- Set up a new db install with the theme. b- Switch back and forth between themes.
I'm at a loss as to how to even debug this issue. Any help would be greatly appreciated.