Jump to content
Sign in to follow this  
iamandyogden

Duplicate an existing page template

Recommended Posts

iamandyogden

i would like to add an additional page template based on one of the existing ones, in this case 'Feature Page'. The intention is to allow myself a page which includes the PageLine Features, but excludes the PageLine Boxes. I've tried to hide the boxes by creating an empty box set and setting the page to use the empty set, however the new set doesn't appear in the list until I put add at least 1 new box to the set, which defeats the purpose. This is my first post, so be kind and don't assume I know anything, lol Thanks Andy

Share this post


Link to post
Share on other sites
cmunns

Did you visit the Platform - Settings - Template Setup and look at the templates listed there. You can easily drag and drop the box section out from the feature template

Share this post


Link to post
Share on other sites
Andrew

this is possible. Are you using the child theme and version 1.2.1? If so, add a file to the child called `page.[pagename].php` then I'll help you do the rest...

Share this post


Link to post
Share on other sites
iamandyogden

Thanks for the replies guys Adam - I've been in the template setup already but this isn't what I'm after, I effectively want two versions of the Feature template, one with the boxes, and one without. Andrew - Despite only purchasing PlatformPro on the 6th, it seems I only had 1.2.1 :os So I've now downloaded 1.2.1 and uploaded to my hosting. I hadn't installed the Child theme, so this has also been downloaded, installed and activated. I've now added an additional file within with platformpro directory, copying the existing page.alpha.php and naming it page.zeta.php. Thanks

Share this post


Link to post
Share on other sites
Andrew

Cool so change the name in the `page.zeta.php` to "Template: Example Page" and add this line of code to the child functions.php: `pagelines_add_page('zeta', 'Example Page');`

Share this post


Link to post
Share on other sites
iamandyogden

Awesome, thanks so much for the help. Once you've got all the information, that's so easy!! I'll be adding this to my own blog so others who want the same thing might be able to find it :D

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×