Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #853360

    Hi Enfold-Team,

    I have recognized the following problem in Enfold:

    I have several posts in the category news with a pdf-link in the title and no actual content.
    Because of the lack of content the date of each post is not showing in the grid layout.
    As soon as I add some text the date pops up.

    I found two threads already adressing this problem:
    Blog grid not showing meta unless there’s also content
    and a recent one with no current solution:
    Display date on blog grid layout

    First thread from 2015 even mentions to modify
    enfold\config-templatebuilder\avia-shortcodes\postslider.php line 375:
    if($show_meta && !empty($excerpt))

    This is not working anymore though – breaks the whole website (original code at line 375 : “public function html()” )

    Could you provide me with the right code and where to insert it or any other way to solve this problem?

    Thanks in advance for your help,

    greetings

    Niemitz

    #854304

    Hey Niemitz,

    Thank you for using our theme.

    You have to modify around line 599 you find:

    
    if($show_meta && !empty($excerpt))
    

    replace with:

    
    if( $show_meta )
    

    This will show the metadata like date for every post.

    Best regards,
    Günter

    #856943

    Hi Günter,

    thanks for your fast reply.
    Your code is working as expected.

    have a nice day

    #857059

    Hi,

    Glad we could help you.

    Feel free to come back if you need further assistance. Enjoy the theme and have a nice day.

    Best regards,
    Günter

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Blog grid layout not showing meta/ date unless there's content’ is closed to new replies.