Home Forums Glissando Year on blog dates

This topic contains 2 replies, has 2 voices, and was last updated by  Samantha 1 year ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #46410


    Hi again, Joshua!

    Apologies for two questions in such a short amount of time.

    By default, blog posts do not show the year (in the blog view specifically, not referring to the post view), just the month and day. Can you please advise on how to add a year? Photo attached for clarity.



    Hey Samantha- no problem. Open your theme’s includes/shortcodes/blog.php file (preferably copy this file to your child theme if you have one) and edit line 162 from:

    $output.='<span class="luxe-post-date">'.get_the_date( 'F j' ).'</span>';

    To read as follows:

    $output.='<span class="luxe-post-date">'.get_the_date( 'F j, Y' ).'</span>';



    That worked beautifully, as always! Thanks so much Joshua!!

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

You must be logged in to reply to this topic.