• Resolved BreTweb

    (@bretweb)


    Hello

    on the top right of reduced post there is the date : Day/month

    where and how to change date to have day / month/ year

    thank you

Viewing 5 replies - 1 through 5 (of 5 total)
  • Theme Author Hardeep Asrani

    (@hardeepasrani)

    Hi,

    Are you talking about the home page or the posts? Let me know. 🙂

    Thread Starter BreTweb

    (@bretweb)

    Hello
    I’m talking about the home posts page that each article have the date (day/month) into a round icon at the top right
    like here https://fr.ww.wp.xz.cn/themes/the-funk/

    thank you

    Theme Author Hardeep Asrani

    (@hardeepasrani)

    Hey,

    You can edit the index.php (and archive.php) file and search for this line:

    <div class="post_date"><?php the_time('j'); ?><span><?php the_time('M'); ?></span></div>

    <div class="post_date" style="margin: 75px 10px 0px 0px;"><?php the_time('j'); ?><span><?php the_time('M'); ?></span></div>

    and

    <div class="post_date" style="margin: 10px 10px 0px 0px;"><?php the_time('j'); ?><span><?php the_time('M'); ?></span></div>

    And replace it your date format using https://codex.ww.wp.xz.cn/Function_Reference/the_date

    Hope that helps. 🙂

    Thread Starter BreTweb

    (@bretweb)

    Hello
    Yes !! Super ! it is the archive page that I searched
    I’s ok now

    Thank you very much

    Theme Author Hardeep Asrani

    (@hardeepasrani)

    Glad to know. Have a great day. 🙂

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘chnge displaying date on post’ is closed to new replies.