Join the Soledad Facebook Users Group here
for Share, assistance, discussion, and Updates related to Soledad WordPress Theme.

If you can't create a new ticket - you can send us an email via our contact form and we will get back to you.

Okay
  Public Ticket #2815607
Different Post Layout per Category
Closed

Comments

  • calvinteoh started the conversation

    I wanted to create a custom Post Layout template for each category; therefore depending on different category, it would automatically uses different layout. Can you advice how I could create separate Posts Layout using Soledad theme, and then mapped them to each category? 

    The documentation in "http://soledad.pencidesign.com/soledad-document/#posts" which uses Appearance  > Customize > Single Post would change the Post layout generically. 

  •  2,495
    PenciDesign replied

    Hi,

    Please go to the Posts → Categories, click the Category then you can set the layout at this screen.

    image.png

    Regards,
    PenciDesign.


  • calvinteoh replied

    Thanks for the quick response, where/ how can I create a custom Post Layout so that it would appear in the list as you shown below? 

  •  2,495
    PenciDesign replied

    Hi,

    1. You can't add your custom layout to this list. This is a pre-defined layout built with this theme.

    2. For the Single Post Layout, when you create/edit the post, please scroll down to Options for This Page/Post, select custom layout at Select Single Style for This Post? The current version doesn't have an option to select Single Post Layout for the specified Category.

    Regards,
    PenciDesign.


  • calvinteoh replied

    Based on the recommendation below in Posts → Categories, I am not able to change the layout. For example, I try to modify the "Select Custom Sidebar for This Category' by changing it to Custom Sidebar 1 (which I have modified based on the documentation), but this category is still showing the general Sidebar. 

    On top of that, there is an error displayed on top of when I entered Posts → Categories (which is shown in the image attached). 

  •  2,495
    PenciDesign replied

    Hi,

    Thank you for report this issue. We'll address this bug in the next theme update.

    You can manually fix this warning & save errors by going to Appearance → Theme Editor, navigate to this file: 

    inc/meta-box/categories-meta-box.php

    Find:

    add_action( 'edit_category_form_fields', 'penci_category_fields_meta' );

    Replace to:

    add_action( 'category_edit_form_fields', 'penci_category_fields_meta' );

    Regards,
    PenciDesign.

  • calvinteoh replied

    Thanks for the fix and feedback. I have fix the code as recommended below and it is working :) Thanks.