• I have been running the Hybrid News theme for about a year and am very happy. My site is growing quickly, and because I need a more expansive navigation system for content, I want to set up a index.html page outside of WordPress/Hybrid.

    I have never played with changing the index.php name for a child/parent theme combo. I want to rename the front page from “index.php” to “home.php”. The new static, non-Hybrid page will be index.html and will have links pointing to Hydrid pages, etc.

    Thanks in advance for your help.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Although I have never used the Hybrid News theme, I just tested out your scenario with my own custom parent & child themes with success. Just for clarity’s sake, my parent theme has no home.php file. My child theme consists of only index.php and style.css. I copied all of the code from my child theme’s index.php into a new file and saved as home.php in my child theme’s directory (I also added a paragraph that said “This is home.php”). When I checked my site in a web browser, the new “This is home.php” text appeared on my homepage.

    In conclusion, this seems to work rather well with parent/child theme setups.

    One quick note. You wrote:

    I have never played with changing the index.php name for a child/parent theme combo. I want to rename the front page from “index.php” to “home.php”.

    If you simply rename the file, your child theme will have no index.php file and will (most likely) revert to using the index.php from the Parent theme. This may or may not be acceptable to you. For best results, and seamless integration, please create a new file named home.php to be used alongside index.php.

    Thread Starter stevefdl

    (@stevefdl)

    Thanks. I’ll give this a try.

    Thread Starter stevefdl

    (@stevefdl)

    Unfortunately it didn’t work for my theme.

    Does anyone know if I can keep the index.php and also have an index.html, making the html a priority on the server?

    Does anyone know if I can keep the index.php and also have an index.html, making the html a priority on the server?

    Definitely not. Only one “default doc”.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Change Front Page to home.php’ is closed to new replies.