Before you ask please READ THIS

Show year in blog posts

How can I show the year in the blog post date?

year.PNG
164 x 251 - 6K

Comments

  • Posts: 1,758
    Hi!
    this is possible only by making changes to php code, are You ok with that?
    Remember to rate our theme if you like it ;)
    All the Best.
  • Yeah that's fine with me :)
  • Posts: 1,758
    OK then.
    file: ..\wp-content\themes\ceevee\inc\utilities.php
    function: a13_posted_on
    find line:
    <div class="stripes"><i><span class="day">'.get_the_date('j').'</span><span class="month">'.get_the_date('M').'</span></i></div>
    change it to:
    <div class="stripes"><i><span class="day">'.get_the_date('j').'</span><span class="month">'.get_the_date('M').'</span><span class="year">'.get_the_date('Y').'</span></i></div>
    and apply tyles for .ribbon span.year

    of course You can place this <span class="year">'.get_the_date('Y').'</span> element wherever You want.
    Remember to rate our theme if you like it ;)
    All the Best.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!