For some reason even when I am selecting a static page for my homepage it is still choosing to load the index.php file.
I would really appreciate your help on this as I would like it to load my own page.php template.
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It only takes a minute to sign up.
Sign up to join this communityFor some reason even when I am selecting a static page for my homepage it is still choosing to load the index.php file.
I would really appreciate your help on this as I would like it to load my own page.php template.
if it is "a very complex theme," then there's probably some hook into template_redirect
malfunctioning. as @TomJNowell mentioned, using home.php
or front-page.php
should allow you to override page.php
, but that's not always preferred (I rarely use them myself), and will not necessarily fix the problem. you don't need to assign a blog page in order for there to be a static front page, so double-check on any hooks into template_redirect
, and see if that resolves the issue.
home.php
andfront-page.php
templates? You don't need to use page templates to style the homepage – Tom J Nowell♦ Sep 16 '14 at 20:46