You are reading Static Homepages. You can leave a comment or trackback this post.
Posted on July 30th, 2006 by mark.
Categories: WordPress.
Creating a static homepage can be used if you want to set up WordPress as a content management system (CMS) where you need to have a front page that doesn't change everyday, this is of course also useful if you want to use WordPress as your website instead of just a subsection of it.
Download Static Front Page unzip and upload to your plugins folder then activate it. Create a page called "home" with a tag of "home" and that will automatically become your new front page.
If you have your blog in a subfolder of your site then you will need to copy "index.php" to the root folder and set the parameters on the "Options" page as follows:
WordPress address (URI): www.yoursite.com/blog
Blog address (URI): www.yoursite.com/index.php
You can now test this by going to your site homepage.
If you want a unique template for your new home page then copy the "index.php" or "home.php in your current theme folder renaming it as something suitable add the following to the top of the file:
<?php
/*
Template Name: Home
*/
?>
To check it is available go to "Presentation" and "Theme Editor" and check it is available on the right hand side. When you go to edit yor "Home" page you should see an option to select the page template.
You can now modify that template and it will only affect pages that you have selected to use that template.
0 comments.
Comments can contain some xhtml. Names and emails are required (emails aren't displayed), url's are optional.