0

Sorry if this seems silly but I am new to WP. I realise that Index template is the most important file. Is it ok to have Index as your "home" page, and can you just assign the Index template to the home page when setting it up in the back-end?

3
  • 1
    for homepage you can have home.php file
    – Sisir
    Commented Dec 14, 2011 at 11:58
  • Thanks. But I don't want the Home page to be different to the Index template. In that case, I can just have the Index template and assign it to be the home page without having a Home.php?
    – tobeeornot
    Commented Dec 14, 2011 at 12:08
  • if you don't want to use home.php its okey. just have the index.php with all homepage content. Wordpress will fallback to index.php if it not find the home.php file. Not recommended though :)
    – Sisir
    Commented Dec 14, 2011 at 13:10

1 Answer 1

0

Use home.php just as Sisir said. Copy the content from index.php to that file and you are all set.

home.php tells wordpress that that page should be the homepage in a theme so no backend settings needs to be changed.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.