WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've installed a store theme and my client asked me to use a different homepage before the current default homepage he wants to name site.com/store.
So I've renamed the original index.php to store.php and created another index.php.

How can I do now to create a link to store.php from index.php?

the contents of store.php cannot be posted in a static page because it's full of php code for last products etc.

Does exist some way to point it?

share|improve this question

Please familiarize yourself with the WordPress templating system, beginning with the Template Hierarchy.

In the WordPress template system, a specific template file, front-page.php, is used for a customized site front page. (Note also the nomenclature; in WordPress parlance, the home page refers to the Blog Posts Index, and not to the Site Front Page.)

So, you simply need to create front-page.php, and include in it whatever front-page content you want to display.

share|improve this answer
thanks you for the info now I have created a working front-page.php, It's not clear to me how to add the store page now, I have the front-page which can link to articles, but how can I create a working store page? I've tried home.php and index.php but I get a 404 not-found page. – vitto Feb 9 '12 at 16:37
WordPress does not recognize a template file named store.php. You need to put that content in front-page.php. – Chip Bennett Feb 9 '12 at 17:37

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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