Trivikrama
Member
Posted 1 year ago #
Hello All,
I want to remove my existing index.php page with a new page and I want to keep the old index page under any menu. I deleted index.php file from my themes folder and checked my home page. It is still the same old index.php. So How can I remove the old one and place the new one.
Thanks in Advance.
illuminatus7
Member
Posted 1 year ago #
Hi!!!
There is a very simple solution for this... Create a new file "home.php" (without the quotes) into your theme folder. When the domain is hit, the wordpress engine first checks if there is a home.php
If home.php is found then that file is displayed or else index.php is displayed.
Trivikrama
Member
Posted 1 year ago #
Hi,
Ya I too got it just now. I deleted my existing index.php page and I renamed my new page as index.php. I created a page from Add New Page in admin section,then I modified my old code to Homepage.php. Now it works fine. Thank you for your reply.