WordPress Quick Tip- Page Templates

Sometimes you want a page or set of pages to look different from the rest of your site.

You can do this easily with Page Templates.

Create a New Page Template

You can either duplicate the page.php or another existing layout in your theme and modify it, or start from scratch by creating a new .php file. (Many themes have multiple page templates already)

Either way, you will need to put this code in the beginning of the new file.

<?php
/*
Template Name: Put-The-Template-Name-Here
*/
?>

 

Now your new template will show up in this section as your create or edit your pages.

page-attributes

Common uses for page templates are: a page with full width content and no sidebar or giving a sub-section of the site a different theme.

Because I do a lot of church and ministry designs, I might use a page template to style the youth ministry pages completely differently than the main website.

Templates open up so many more possibilities in your design.  Try it out.

Be Sociable, Share!

Related Posts

  1. Why Use WordPress? Page Additions & Menus