By -

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.

[ad#Google Adsense 468]

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]

<?php

/*

Template name: Custom

*/

?>

[/php]

Then add content to the page.

Eg

[html]

<html>

<body>

Your content here

</body>

</html>

[/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]

<?php

/*

Template Name: Custom

*/

?>

<html>

<body>

Your Content here

</body>

</html>

[/php]

[ad#Google Adsense 468]

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]

<?php

/*

Template Name: Custom

*/

?>

<?php get_header(); ?>

Your Content here

<?php get_footer(); ?>

[/php]