layout tips

Use page templates for custom page layout in WordPress
Published on March 21st, 2010

Getting custom page layout in WordPress is not so hard, to do so proceed the following way: Check if your template includes a page-custom.php file, if it doesn’t you should create it by duplicating the page.php file. Copy the page-custom.php file, rename it to something relevant (for example: page-contact.php for a contact page with a custom layout). In the very beginning of the template file, add the following code: <?php /* Template Name: Contact */ ?> Customize your template. In your WordPress admin, under page editing, you should now have a drop-down listing all your pages in the “Template” box.