Podcast Episode

050 – WordPress Custom Page Templates


Custom Page Templates

Now this approach will work on most themes
– Using an FTP client, go to wp-content/themes/YourThemeName/page.php and duplicate this file
– Call it something. I normally rename this to page-something.php, normally a descriptive word
– Open up this file and in the first few lines of code you should see inside the comment tags:

Template Name: terms

– Change the template name to something and save
– Now do the custom modifications. Maybe you don’t want the breadcrumbs to appear. Maybe you don’t want the page title to appear, whatever you want to make custom, go for it
– Save all changes.
– Now either go to an existing page or create a new one
– Look for the page attributes section. Should be on right side under the publish button
– If you don’t see it, click on the screen options tab in upper righthand corner and check ‘Page Attributes’
– In Page Attributes window you should see under parent: ‘Template’ – choose the template you just created and publish / save your page
– Go to that page and refresh and viola you should see your changes

Leave a Reply