• Resolved Masud

    (@masudcu)


    Hi!

    How to change current date format?

    I want to show published date (E.g. 17 July 2019) instead of ‘4 years ago’. What should I do for this?

    Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Theme Author Patryk Kachel

    (@limestreet)

    Hi @masudcu

    to do so you need to modify theme… so basic PHP knowledge required.
    The best way to modify theme is to use child theme – more info about child themes here: https://developer.www.ads-software.com/themes/advanced-topics/child-themes/

    You may find (and download) prepared by us child theme on this page: https://blogonyourown.com/themes/blover/

    It should be enough to define your own version of function blover_posted_on() – just copy the original function (from parent theme – file inc/template-tags.php) to functions.php file in child-theme directory.

    If it’s too much for you and need help from professional developer you’ll find more info here: https://blogonyourown.com/customization/

    I hope it helps you a bit ??
    Please let me know if you have more questions.

    Best,
    Patryk

    • This reply was modified 5 years, 4 months ago by Patryk Kachel.
    Thread Starter Masud

    (@masudcu)

    Thanks for your kind response. I just fixed this problem following your guideline.

    But another query: how to set alignment to center instead of left to post title and post meta?

    See this screenshot for easy understanding: https://ibb.co/Y79s2Sx

    Theme Author Patryk Kachel

    (@limestreet)

    Hi @masudcu
    I’m glad the above works ??

    It should be possible to change using CSS.
    If you know a bit CSS then you need to play a bit to find appropriate classes to overwrite, but it is definitely doable ??
    If you find what and how to change then please place the CSS code into style.css file in child theme directory.

    P.S. Is hard to give exact code without seeing your site (especially if you made any modifications already).

    Best,
    Patryk

    Thread Starter Masud

    (@masudcu)

    Thanks again.

    Another issue I faced now. How to change current date format in comment section. I already changed date format of ‘single post meta’, but don’t find a way to change date format of ‘comment section’.

    See this screenshot for easy understanding: https://ibb.co/DGpWV5z

    Theme Author Patryk Kachel

    (@limestreet)

    Hi again @masudcu ??

    the date you’re looking for is located in function blover_comment which is located in inc/template-tags.php file.
    Modify this function to your needs similar way as the previous one (copy that function to child theme functions.php file and modify what’s needed).

    I hope it helps you.

    Best,
    Patryk

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to change date format?’ is closed to new replies.