You can write either posts or pages in WordPress. When you are writing a regular blog entry, it appears in the homepage. Whereas Pages are useful for writing “About Me”, “Contact Us”, “Privacy Policy” etc etc., You can use pages to organize any amount of content. In a simple way, Pages are very similar to posts, which contain Titles, Content. But you can customize the Page Template.
FEED! Subscribe via EMAIL. |
For instance, if you want Header and Footer without a sidebar, You can use custom Page Templates. So lets learn how to do this.
First of all you need to take your favorite text editor like notepad and copy the code below:
<?php /* Template name: Custom */ ?>
Then add content to the page.
Eg
<html> <body> Your content here </body> </html>
Now combine both the codes, save it with *.php extension and upload it to your Current Theme* directory. The combined code look like:
<?php /* Template Name: Custom */ ?> <html> <body> Your Content here </body> </html>
FEED! Subscribe via EMAIL. |
You can complete this process in
1. Login to your site admin panel.
2. Under Pages, Click on Add new.
3. Add a new page and give a Title to that page.
4. Under attributes section, You can see Template Option.
5. From the drop list, Select our newly created page template, i.e, “My Test Template”.
6. You are done!! Publish your Page.
- You can also add header and footer to your page by using the code below:
<?php /* Template Name: Custom */ ?> <?php get_header(); ?> Your Content here <?php get_footer(); ?>












{ 11 comments… read them below or add one }
Its a nice and simple post
.-= Rajesh Kanuri @ TechCats´s last blog ..[Thesis Tutorials] How To Remove Comments From Thesis Home Page =-.
thnx a lot bro. Glad you liked it. Stay tuned for more Updates
I usually don’t usually post on many Blogs,but I love your blog, I often read here, still I just has to say thank you… keep up the amazing work.
You can write either posts or pages in Wordpress.
Its a nice and simple post 2
Thanks a lot! I’m still waiting for some interesting thoughts from your site in your posts.
wow thanks a lot ! I will try it right now !
I was wondering about this and I am really scared of coding in WP but I will definitely give it a go and try to make a custom template like this.
Thanks.
Thank you for the useful information.
I like your blog.
Thank you for the useful information.
I like
Thank you, I have recently been looking for information about this topic for ages and yours is the best I have discovered till now. But, what about the bottom line? Are you sure about the source?
{ 1 trackback }