How to Create a Custom Page Template

[edit] Please Note

These docs are now deprecated, we have a new Support area located here

(Difference between revisions)
Line 1: Line 1:
The PageLines Framework offers several Page Templates for you to use when configuring your sections. However we realize that the ones provided either aren't always enough or their names might get confusing. (Ideally, we’d love to allow you to add & rename templates via the Template Editor, but because of a WordPress quirk we can’t. [http://core.trac.wordpress.org/ticket/13265 See the WordPress Ticket here.)] Until that tiket gets resolved, you will have to add your Custom Page Template manually:
+
The PageLines Framework offers several Page Templates for you to use when configuring your sections. However we realize that the ones provided either aren't always enough or their names might get confusing. (Ideally, we’d love to allow you to add & rename templates via the Template Editor, but because of a WordPress quirk we can’t. [http://core.trac.wordpress.org/ticket/13265 See the WordPress Ticket here.)] Until that tiket gets resolved, you will have to add your Custom Page Templates manually.
 +
 
 +
==Create a Custom Page Template==
 +
 
 +
# Install & activate either the [http://www.pagelines.com/wiki/How_to_Use_the_PageLines_Customize_Plugin#Install_the_PageLines_Customize_Plugin PageLines Customize plugin] or the [http://www.pagelines.com/wiki/How_to_Use_the_Base_Theme#Install_the_Base_Theme Base Child Theme]
  
 
Once the plugin is activated, go to the folder where the plugin is located. It should be:
 
Once the plugin is activated, go to the folder where the plugin is located. It should be:

Revision as of 18:18, 20 February 2012

The PageLines Framework offers several Page Templates for you to use when configuring your sections. However we realize that the ones provided either aren't always enough or their names might get confusing. (Ideally, we’d love to allow you to add & rename templates via the Template Editor, but because of a WordPress quirk we can’t. See the WordPress Ticket here.) Until that tiket gets resolved, you will have to add your Custom Page Templates manually.

Create a Custom Page Template

  1. Install & activate either the PageLines Customize plugin or the Base Child Theme

Once the plugin is activated, go to the folder where the plugin is located. It should be: /wp-content/plugins/pagelines-customize

Inside the pagelines-customize folder there is a file called "page.base.php". Duplicate that file and rename it to

"page.facebook.php" (or change facebook to whatever name you want) Now open the file & change

Template Name: Custom Page

to

Template Name: Facebook

(or again, whatever name you choose.) Save the file & you should see your new custom page template