Back to Blog

Using Custom Templates in WordPress


Recently, we were configuring a site with both a Blog as well as Pages with the content being managed through WordPress. The odd thing is there didn’t seem to be clear documentation in WordPress about how to save a template (for ex: page.php or index.php) and then hook it up simply into WordPress to be able to tie a Page to the new template.

Then I stumbled across this post:

WordPress tips and tricks – Custom Page Templates

Looks like it’s as easy as saving an existing template like page.php as a new template (ex: custom.php).
Then you would open custom.php and paste the following PHP tag at the top of the page:

<?php /* Template Name: Name of template here
*/ ?>

Lastly, you go into WordPress, click Pages, select the page you want to manage and your new template should now appear as an option to choose.

Author Alex Fedorov

Alex is a strategic thinker with a gift for information architecture, known for his ability to wireframe complex workflows and multiple states of applications at the speed of light. He is passionate about clean, data-driven design.

More posts from this author

How we work Process

Product Hero Talin Wadsworth