Log In Sign Up

Wordpress Tip: How to setup your own custom homepage


Forum: Graphic and Web Design

Notices

Welcome to the JustMommies Message Boards.

We pride ourselves on having the friendliest and most welcoming forums for moms and moms to be! Please take a moment and register for free so you can be a part of our growing community of mothers. If you have any problems registering please drop an email to boards@justmommies.com.

Our community is moderated by our moderation team so you won't see spam or offensive messages posted on our forums. Each of our message boards is hosted by JustMommies hosts, whose names are listed at the top each board. We hope you find our message boards friendly, helpful, and fun to be on!

Reply Post New Topic
  Subscribe To Graphic and Web Design LinkBack Topic Tools Search this Topic Display Modes
  #1  
May 14th, 2009, 08:26 PM
LadyViola's Avatar Mega-Super-Platinum Lady
Join Date: Jan 2008
Location: Central Texas
Posts: 615
Did you know you can set any page to be your homepage on Wordpress and you don't have to use the default homepage? Here is how (the following tip assumes you are using wordpress 2.7 or better):

Once you have designed your homepage, you will need to add the following to the very beginning of your html, even before the opening <head> tag:

<?php

/*

Template Name: Home Page

*/

?>


"Home Page" is simply the name you are giving this page. It can be whatever name you like, but everything else must stay the same. Also note that the file needs to be a php file. Even if it is only html/css code, still go ahead and save it as a php file and be sure to give it a unique name and not a name that would conflict with the existing pages. For example, do not name it "index.php" or "page.php" as these page names already exist in the wordpress installation. Something like "homepage.php" would be fine. Next upload your new homepage to your theme folder via FTP. If you are using the default wordpress template, you would upload your file to the /wp-content/themes/default folder.

Now double check in wordpress to make sure its there. Go to appearance>>editor. You should see your homepage in the list to the right under "theme files". If you named the template "Home Page" and named the file "homepage.php", you will see a new page Called "Home Page Template" and underneath it will show you the name of the file, which would be "homepage.php".

The next step is to create a new page using this template. To do this, go to "page" (NOT "post") and click "add new". You can name this page anything you like. I like to keep it simple and name it something like "homepage." After you have given your page a name, be sure to click "publish", then go over to "settings" and click on "reading". Under "Front page displays", click the radio button next to "static page". Next to "front page", you will see a drop down box; find your new page in the list and select it. Click "save changes".

That's all!
__________________






Last edited by LadyViola; May 14th, 2009 at 08:30 PM.
Reply With Quote
  #2  
May 17th, 2009, 01:48 PM
CeiCei's Avatar Platinum Supermommy
Join Date: Jul 2005
Location: Mobile, Alabama
Posts: 9,482
Send a message via AIM to CeiCei Send a message via MSN to CeiCei Send a message via Yahoo to CeiCei
Thanks for this. I am thinking about trying Wordpress out myself. Anything you can provide would be great.
__________________
Kassia's Blog | Kassia's Family Blog | In My Purple Passion | The Food Travel Enthusiast




My Three Princes: Cordell (23 y/o), Ernest (5 y/o), Robert (4 y/o)

Reply With Quote
Reply

Topic Tools Search this Topic
Search this Topic:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -7. The time now is 06:14 PM.



Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0