Skip to content


Tutorial: Create a Custom Wordpress Page With Different Template

TheEvilGenius asked:


Recently I needed to create a page in Wordpress that didn’t have the sidebar on it. I still wanted the sidebar on all the other pages, just not that one (i.e. for an option or sales page).

It took me a while to find the solution, but the one I found works like a charm. Takes a bit of programming knowledge, but not too bad.

Here is a quick video on how to go about doing it and a custom.php to get you started.  Credit goes to Moses at wpthemesplugins.com for the solution.  My video just walks you through each step to make it a bit easier.

Click Here to watch the video tutorial at Evil Genius TV.

Sorry, I would embed the video tutorial here, but it is not allowed :)

In a nutshell, here are the steps:

1. Create  a custom.php file in your favorite text editor. I use Notepad ++

2. Add this code to the beginning of your custom.php file


/*

Template Name: custom

*/

?>

3. Copy the contents of your page.php file from your current theme.

4. Paste the code below what you just added to the custom.php

5. Find the code that says < ? php get_sidebar(); ? >  and delete it.

6. save custom.php

7. FTP custom.php to your current theme folder under wp-content>themes>(whatever theme you are using)

8. Create a new page.  Under Advanced options, choose Page Template > custom.

9. Thats it!

If it sounds complicated, it really isn’t.  In the video, I will walk you through it in about 5 minutes.



Create a video blog…instantly.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • NewsVine
  • Reddit
  • StumbleUpon
  • YahooMyWeb
  • Google Bookmarks
  • Yahoo! Buzz
  • TwitThis
  • Live
  • LinkedIn
  • Pownce
  • MySpace

Posted in How To Wordpress Blogs. Tagged with , , .

0 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

Some HTML is OK

(required)

(required, but never shared)

or, reply to this post via trackback.

Security Code: