New Landing How can we help? Themeforest Theme Support Flexform How to show categories in blog initial page?

Viewing 9 posts - 1 through 9 (of 9 total)
  • Posted in: Flexform
  • #7761
    fernandorui
    Member
    Post count: 25

    I’ve set the initial page as a blog. How I can show the categories of each post near the author and the date?

    Thks in advance,

    #8135
    Cosmin – SUPPORT
    Member
    Post count: 3851

    Hi,

    This option doesn’t currently exist in the theme, I’ll make a note to Ed though, maybe it can be added in a future update.

    Regards,
    ————————————————————————————————————

    Cosmin – Support

    #8429
    fernandorui
    Member
    Post count: 25

    Hi Cosmin,

    I remember in some post in the theme forest comments area for Flexform, Ed said for other user He could provided spme code to show the categories near the posts. I can’t find it, unfortunatelly.

    Is there a chance to provide some guidelines on how I can add this?

    Thanks in advance,

    #8550
    Cosmin – SUPPORT
    Member
    Post count: 3851

    Not sure what they discussed, but I’ll try to get Ed in here to help out.

    Regards,
    ————————————————————————————————————

    Cosmin – Support

    #8656
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Hi there,

    All I provided was some php code:

    $post_item .= get_the_category_list(', ');
    

    You’d want to place that where you want in /includes/sf-content-display/sf-post-formats.php . The function that shows the posts is line 197 onwards. If you let us know what blog display type you’re using then I can be more specific.

    – Ed

    #8685
    fernandorui
    Member
    Post count: 25

    Hi Ed,

    I’m using Display Type ‘Mini’.

    BTW, Can I add another div (or something else) just to put the category names inside the comments counter?

    Thanks in advance

    #8782
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    You could try adding this above line 446:

    $post_item .= '<span class="category-list">'.get_the_category_list(', ').'</span>';
    

    You might need to add some css too.

    – Ed

    #8798
    fernandorui
    Member
    Post count: 25

    Hi Ed,

    Thanks. Worked perfect!

    Is it possible to have (with CSS) a box outside the Category name like the Supreme theme?

    Thanks,

    #8876
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    You could add CSS to have a background around them in the same colour, but not different colours.

    – Ed

Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register