template tips

Use page templates for custom page layouts in WordPress
Published on May 22nd, 2011

Getting alternate layouts for your WordPress pages is quite easy, for that just duplicate the page-custom.php file. Make all the changes you need in that file and add the following code in the top of the file.

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.