This is a follow-on from my article called: How To Make WordPress Look Like a Website, where we walked through changing which page shows up as the home page for your WordPress website. The idea was to make it look more like a web site rather than a blog.

We changed the front page, but were left with the Page title and Sidebar still. So what if we want to completely customize our home page?
WordPress Page Templates are the answer
WordPress provides a clever way to do this called Custom Page Templates. To create a WordPress Page Template, you’ll need to use your text editor. Go to the directory on your server where you installed WordPress, and then navigate to the directory of your theme. Usually that looks something like this: “/wp-content/themes/default” where “default” is your theme name.
That’s where you will create your custom page template file. Create a file called “cover_page.php” and add the following code to it:
<?php /* Template Name: Cover Page */ ?> <?php get_header(); ?> Here's my cover page! <?php get_footer(); ?>
The Template Name: Cover Page tells WordPress that this will be a custom page template, where Cover Page is the name that will show up in the drop down selector when you create your page.
The other lines in this file simply include the header and footer of your blog. You can add any HTML that you want to display on your page in the middle.
That’s it – now you have a custom page template!
Creating a Page Based on Your Custom Page Template
Now all you need to do is create a new Page in WordPress:

and assign your new custom page template to it:

Now you will have a completely blank home page, with only the header and footer for your site. You can add ANY code you want to this page and customize it until your heart is content.

One caveat though – you’ll find that any content you put into the “page” you created in the WordPress editor will not show up here. Since you are overriding the page with a custom page template, you’ll need to add your content to the cover_page.php file that you created in order for it to show up.
Once you have the page looking the way you want it, go into Settings -> Reading in your WordPress Admin panel and set the “Front page displays” settings to look like this:

Now your custom page will be the first thing visitors see when they come to your website!
Here’s a video walkthrough: Creating WordPress Page Templates.
Update: watch this video to see how to create a custom page template that is editable from the visual WordPress editor!
See my WordPress Powered Websites series for more WordPress articles, tips and tricks for small business websites.
If so, please join over 10,000 people who receive exclusive weekly online business and blogging tips, and get a FREE COPY of my eBook, 10 Steps to Free Website Traffic! Just enter your name and email below:
If you're building a business website these days, you're in luck.
WordPress has revolutionized the ease and power of what a website can do and be. Now you can quickly create a website that is optimized for top search results, and update it yourself whenever you want.
As you'll see in a moment, the SmallBiz Theme is much more than a mere WordPress theme. It's a complete solution for your business web presence including a Website, Blog, Facebook Page and Mobile Website.
Let's take a look at each of these, and how they help you generate new business from the web…
Click to continue...See my disclosure about advertising and affiliate links






{ 164 comments… read them below or add one }
← Previous Comments
“One caveat though – you’ll find that any content you put into the “page” you created in the WordPress editor will not show up here. Since you are overriding the page with a custom page template, you’ll need to add your content to the cover_page.php file that you created in order for it to show up.”
Is there any way of getting that content to show up? Does your moderator friend or someone on the board know of any code that we could enter into the cover_page.php file that will tell it to pick up the page content that you enter at the admin pannel?
cheers!
duncan – yes, I show you how to do that in this post.
Thanks men, its very helpful to me…
A client wanted this done and this summary has brought me up to speed.
Hello,
I followed your instructions on creating a page template and it worked great.
However, I have links to images in my html source code that do not show up on the cover page. I copied the images into the images directory, but they still do not show up. What do I do?
Thank You!
“You can add any HTML that you want to display on your page in the middle. ”
Can the HTML have image references in it?
Thanks so much for this helpful information.
Hi Don,
I am very new to wordpress and website design. I am trying to create a business page with your instructions but am getting stuck when I try to add your code to the custom template file you instructed to create in the theme directory. I am showing two file folders – twentyten and twentyeleven in my theme directory but no default. When I add the new file – cover_page.php. I can not add any code to it. I am using FatCow.com as a host server and am unsure how to continue making my custom webpage.
Thank you in advance.
Hi Sara,
Which theme do you have active – Twenty Eleven? Then that’s the directory you need to place the file in. You will need a code editor and an FTP program to get that done.
You ROCK Don!!! Your response outran all other responses I had to spend 2 hours reading. Thanks a lot!
Thanx for ur useful post . it works really well
This is a great resource. I’m also very new to wordpress and web design. Dream Host is Hosting my page. Can you tell me if I need to install code editing software from DreamHost to my website server? Would the website server be DreamHost?
Thx a lot for this tutorial..
its very useful for us.
this one explains how to display blog in a separate page
http://www.itwebtalk.com/how-to-create-a-custom-template-for-blog-post/
It’s useful!
Just did it.
such an easy code addition but have never really required the custom page my theme rocks
but with the addition to clickbank checkout for my product this was perfect.
killer custom page template for wordpress
thanks
Hi Don.
I can follow your instructions easy enough, but when you say ” you have your header and footer, and now you can add any code to fill the page and show a simple line of code starting ‘id div’ ? you lose me completely. I can’t write php / css code.
I am trying to adapt the Proton free wordpress theme into a serious business website and not a blog. It has limited page templates. Default or portfolio. I want to add text blocks to the portfolio page but the template won’t let me ?, so I thought your advice on creating a custom page might be the answer, but having seen your video etc I know I can’t even begin to adapt it myself. What would you suggest I do?
This is the theme…http://www.intenseblog.com/wordpress/theproton-brand-new-free-premium-wordpress-theme.html
I can email you some screen shots of what I am trying to achieve with a few partially populated pages annotated to show the problem areas, if you would be prepared to have a look?
Failing that, is there a wordpress theme for a similar elegant business website
which you would recommend that already has all the features that are required?
Hi Pancho,
I’m not familiar with that theme, but if you are not comfortable with making some coding changes to the theme then you probably should try to find a theme that is closer to what you need the end result to be.
I have created a business theme called the SmallBiz Theme that might be a fit – depending on what you want it to look like when you are done.
Wow! What a fantastic post! I’ve been working to design custom wordpress websites, and posts like this are great!
Thanks, this was helpful.
Thanks dear! Much helpful post. Good work.
Excellent article. Keep writing such kind of info on your blog.
Im really impressed by your blog.
Hi there, You’ve performed an incredible job. I’ll definitely digg it and individually suggest to
my friends. I am sure they will be benefited from this site.
Hi, thanks for this great tutorial. I just have one question, I’m building my own theme from scratch, I would like to have options to add custom templates for some pages, what do I have to add tomy theme files to make it possible? At the moment I don’t see the option to choose custom page template on the right menu in the theme I’m building. I see it in all other themes for example in tventy eleven but not in mine. Do you know what may do the trick?
Thanks for sharing such interesting info.
Regards
Robert
hi
its very nice and very use for me
thank you
Thanks for help me ! I tried and work perfectly. My problem is to give to this new page a different style.css. In the code I can’t see the name of the css, so how can I do? Hope you can help me again
Crika
Helpful on my page thanks
Don,
You lost me when you wrote “To create a WordPress Page Template, you’ll need to use your text editor. Go to the directory on your server where you installed WordPress, and then navigate to the directory of your theme. Usually that looks something like this: “/wp-content/themes/default” where “default” is your theme name.” I’m not sure where to find that, am I looking in Windows Explorer, within wordpress? Not sure what you mean by I will find it “on my server? Help, please!
Millie: The “server” is the hosting service where your site’s pages are stored. You can create the file with Notepad, and then upload it via ftp to the host.
Or your host may provide a control panel which you can use to upload the file.
Cheers Don that’s really helpful. I recently started using WordPress as a solution for some clients due to how quickly you can load a nice looking website. This is a handy bit of information to know.
Thanks for sharing.
Thank you Don!
These instructions are very helpful!
← Previous Comments
{ 10 trackbacks }