WordPress.org

Support

Support » Themes and Templates » Renaming home.php in old theme

Renaming home.php in old theme

  • I have a theme custom written for our company in ’06 or ’07, at which point it was very well-written, but no longer. I have no Posts Page, in part because our static homepage is called home.php, and when I try to designate a page to display all the most recent posts (a la codex instructions) that page just displays home.php…without css!

    My question is how many steps are going to be involved in the process? Can I just rename home.php to homepage.php in the theme and then I’ll be done? Or will I need to go through and change a bunch of references? For example, I see

    <?php if (is_front_page()) { ?>
          <?php include ('home.php'); ?>
          <?php } ?>

    in page.php, so I would need to change that for sure. I could just ask the original theme devs to iron this out, but I hate paying so much money for things that turn out to be easy to do yourself.

  • The topic ‘Renaming home.php in old theme’ is closed to new replies.
Skip to toolbar