Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #903455

    Hi I am trying to use the blog grid layout to show featured image, title and category for the blog page. I used the layout builder on the page to create a custom layout, but there is no option to show category in the grid post layout. I found this article: https://kriesi.at/support/topic/dynamically-add-the-category-name-to-grid-layout-source-code/ and tried adding the code replacement here into my child theme, but it doesn’t do anything (and the replacement option for line 253 is an empty line, so a bit confused on that part). Can you provide a cleaner way of achieving this? Thanks!

    #904003

    Hey janetgot,

    Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?

    Best regards,
    Victoria

    #904295

    Sure. Thanks for looking

    #905143

    Hi,

    If you are using

    the grid has the metas you can see on the view

    Best regards,
    Basilis

    #905260

    I don’t understand. I have created a Page, used the Avia Builder and added in a “Blog Posts” section, which is set to Grid Style. There are no meta options there. There are options in the Enfold Blog page settings, and I have Category checked off. It doesn’t show… if I just create a blank page and set to Grid, and have Category checked off, it still doesn’t show the category.

    #905794

    Hi,

    Can we please access your backend?

    Best regards,
    Basilis

    #905845

    Yes, login info sent earlier, but here it is again

    #906672

    Hi,

    Thank you for the info.

    You can use the following filter to display the categories on a grid layout.

    add_filter('avf_postslider_show_catergories', 'avf_postslider_show_catergories_mod', 10, 1);
    function avf_postslider_show_catergories_mod($category) {
     	$category = 'show_business'; // or show_elegant
    	return $category;
    }

    Best regards,
    Ismael

    #906895

    Perfect. Thanks!

    #906902

    Hi,

    Glad that Ismael helped you. Thanks for using Enfold! Have a nice weekend :)

    Best regards,
    Nikko

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Adding Category to Blog Grid Layout’ is closed to new replies.