• Resolved JeroenBalk2

    (@jeroenbalk2)


    I created a special page template for my frontpage. I created a page and set the so called ‘home template’. Then I went to customizer and configured a static page as frontpage. This worked.

    I was working on the website when suddenly my frontpage changed to the single page. I changed the template of my home, and switched it back to reset is. But this didn’t work. I did the same for the frontpage setting in the customizer, also didn’t work.

    I duplicated my home template and renamed it, then set it as the template of my home. It worked, but now my old non existing template still shows up in the dropdown in the admin.

    What is this and why is this buggy thing showing up?

Viewing 3 replies - 1 through 3 (of 3 total)
  • jack randall

    (@theotherlebowski)

    clear your browser’s cache and see if the problem goes away…

    Thread Starter JeroenBalk2

    (@jeroenbalk2)

    Yes, my localhost has no cashing and I refreshed my Firefox browsercache with a plugin.

    Some days ago I deployed my work on an online host for my client to have a look at it. Now I logged in into that version, to make sure I didn’t break something on my local installation.

    When I open the page ‘Home’ (which is set as frontpage) the dropdown at the sidebar tells me it uses the ‘default template’, but it uses home-template.php (Template name: Home Template).

    To doublecheck this I created a new page, with home-template.php (Home Template) selected, and it does the same as on my localhost: displaying page content in a single post template..

    I’m getting pretty sure this is a bug.. Or what else could this be?

    Thread Starter JeroenBalk2

    (@jeroenbalk2)

    Sorry for the doublepost.

    I found the issue in my project. The fact was, I had to manually create a single page because the theme I was building upon didn’t have one. The homepage template was the most easy one to change. So I did and renamed it to single.php, knowing that the filename is the only thing WordPress needs to recognize a single template. This was the reason I forgot to delete the “Template name: Home template” at the top of this file.

    It resulted in WordPress not exactly knowing which ‘Home template’ too chose, why it worked when I duplicated home template and changed the template name and why it displayed single instead of home.

    I think yesterday was a bit too long for me ?? Thanks for the suggestion anyway jack randall.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Non existent page templates showing up’ is closed to new replies.