How to create a Custom Page Template WordPress

Something really cool about the WordPress is the way you can create multiple page templates.

What does it mean?

For example you can create a template wich will show the page with no sidebar. Or you can create an other template with two sidebars.

Ok. How?

Easy, you just need to create a file in yout theme folder called template-CustomName

Example

template-fullwidth.php

Please notice you need to put this line I pasted above at the very top of the file. This Template Name will show in your admin panel when creating a Page.

Real Example

Here a fully working example of a Full Width page template.

One Response to “How to create a Custom Page Template WordPress”

  1. alveo akuna May 4, 2012 at 4:49 pm #

    Thank you for sharing your info. I really appreciate your efforts and I
    will be waiting for your next write ups thank
    you once again.

Leave a Reply

Add <code> Some Code </code> by using this tags.