I am building a custom index.php
file in my child theme overriding the default theme index.php
file which loads first when the theme is first installed.
Is there a way to clone an entire page to index.php
file by page name or id or slug? I will build a page by adding a new page from dashboard and add elements there. Now, when I build the page, I also want the index.php
file look the same. Hope I make sense.
I have created a custom template as the index.php
file. But not sure about the cloning process. Any help will be appreciative.
thanks