• 0
Sign in to follow this  
Followers 0

Custom Category Template

Question

Posted · Report post

Hi, is there a way to create a custom category template in PageLines? I would like to have a completely different category template from the default one. I've done this with other themes but the Pagelines architecture is a bit different. Basically I would like to know where Pagelines pulls in categories so that I can add a conditional statement to use a custom php category template for specific categories. I just want to change the content area so the header, sidebar and footer should remain the same. Thanks!

Share this post


Link to post
Share on other sites

11 answers to this question

  • 0

Posted · Report post

Hi, if you go to [b]Dashboard > PageLines > Templates[/b] and click in the first (left) layout map in the [b]Page Templates[/b] area, you'll see a number of different template options. One of them is [b]Category[/b], where you may add a variety of drag and drop elements to your category template. Please keep in mind that as you cannot edit category pages once created as you can pages or posts, you won't be able to hide elements added to the category template later on. You can however, add sidebars, to which you may add content as needed using [url="http://wordpress.org/extend/plugins/widget-logic/"]Widget Logic[/url] to determine which categories the content is applied.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

In this case, I don't think the customizations I have in mind is possible through the drag and drop editor and I believe requires a custom php template. Is there anyway I can hook in such a template?

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Have you looked into this documentation on creating a custom page template?: http://www.pagelines.com/wiki/How_to_Create_a_Custom_Page_Template

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Yes, but how do I modify that page to make it a custom category template?

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

The category page on PageLines isn't controlled by a standard category PHP file, so it'll need to be done a different way. Are you using either PageLines Customize or the base theme?

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Yeah, I can see that there is no category.php file. If I can find out what file needs to be edited and where would be great. I'm using the PageLines Customize Plugin.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Hi @troytempleman You have a couple options. You can create a custom section to display the category page data and then add that section to the category template in [i]Templates[/i]. (http://www.pagelines.com/wiki/Developer_Docs) Or you can add the Universal Sidebar Widget to the category template in [i]Templates[/i] and use the [url="http://wordpress.org/extend/plugins/widget-logic/"]Widget Logic plugin[/url] to display your data.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

The custom section sounds like the more desirable option but I don't see on that page where it says how to create a custom section. Can you point me in the right direction?

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

You can download a sample section in the Developer Toolkit at http://www.pagelines.com/wiki/Developer_Software

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Hi Troy, If you still need a solution for this problem, you can check out a post of mine to see if this solution is satisfactory for you. http://www.anthalis.dk/creating-different-looks-for-categories/ Granted, it does use a shortcode and there is some coding, but your category templates will be able to support Drag&Drop sections. Also, it doesn't make use of third-party plugins. If you need further help, don't hesitate to ask. Good luck!

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Thanks for input @anthalis

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  
Followers 0