• Skip to primary navigation
  • Skip to content
  • Skip to primary sidebar

WP SITES

2468

Original Genesis Tutorials & 5000+ Guaranteed Code

Snippets

  • Subscribe
  • Register
  • Videos
  • Log in

Need Help? - Get Coding Support Now

Create Custom Page Template Like Home For The Agency Theme

In this post, i’ll provide all the code i have tested which creates a new page template for the Agency child theme by StudioPress.

The page template is exactly the same as the home page template this theme includes however it also includes unique widgets rather than use the existing home page ones.

Lets take a look at both the default home page template and the new custom page template.

Default Home Page Template

Here’s the default home page template:

Default Agency theme home page template

Custom Home Page Template

And here’s the new custom page template which is exactly the same as the default:

custom home page template for Agency theme

Template & Functions Code

And here’s the code for the new template file named page_custom.php as well as the functions.php code for the new page template widgets.

Page Attributes

Simply select the new page template from the drop down menu under Page Attributes and you will find that page is now the same as your home page except the new widgets areas enable you to display different content.

page attributes

Different Style For Custom Template

You could also style your new page template differently by changing the body class in the page_custom.php file and finding all the CSS which applies to the default home.php file which you would need to modify.

You would also need to change the i.d & class selectors in the page_custom.php files code to something unique which you would use with the modified CSS code already used to style the default home page template.

This tutorial shows you how incredibly flexible Genesis child themes are and how easy they are to customize.

Check out the best free child themes built on the best design framework for WordPress.

Subscribe for new Genesis Tutorials

Primary Sidebar

Recently Coded

  • Infinity Pro – Change Team Page From 4 To 3 Columns
  • Infinity Pro Vertical Menu
  • Genesis Sample Theme – Custom Archive Page Template With Different Hero Images
  • Foodie Pro – Reposition Search Box Before Nav Menu
  • Showcase Pro – Use Custom Image As Single Post Entry Header Background

Brad Dalton Specializes In Genesis child theme customization & code modification.

Advertise · WPEngine · Genesis · Log in

  • Membership
  • by Theme
  • Contact
  • RSS
  • Newsletter ( Twice Weekly )