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)
(Create a Custom Page Template)
(Create a Custom Page Template)
Line 8: Line 8:
 
#* '''../wp-content/themes/pagelines-template-theme'''
 
#* '''../wp-content/themes/pagelines-template-theme'''
 
# Inside the folder you will see a file called either '''page.base.php''' (PageLines Customize Plugin) or '''page.example.php (Base Child Theme)
 
# Inside the folder you will see a file called either '''page.base.php''' (PageLines Customize Plugin) or '''page.example.php (Base Child Theme)
# Duplicate that file & rename the duplicate to '''page.customname.php''' whereas "customname can be anything you want
+
# Duplicate that file & rename the duplicate to '''page.customname.php''' whereas "customname" can be anything you want
 
# Now open the file & change the Template Name to whatever custom name you want
 
# Now open the file & change the Template Name to whatever custom name you want
 
#* This is the name that will appear in the Template Setup
 
#* This is the name that will appear in the Template Setup

Revision as of 18:39, 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
  2. Navigate via FTP to the respective folders
    • ../wp-content/plugins/pagelines-customize
    • ../wp-content/themes/pagelines-template-theme
  3. Inside the folder you will see a file called either page.base.php (PageLines Customize Plugin) or page.example.php (Base Child Theme)
  4. Duplicate that file & rename the duplicate to page.customname.php whereas "customname" can be anything you want
  5. Now open the file & change the Template Name to whatever custom name you want
    • This is the name that will appear in the Template Setup
  6. Save the file & you're all set!

Your new Custom Page Template will appear inside the Template Setup as long as the PageLines Customize plugin or the Base Child Theme remain active.