WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Lightword Theme adding time to posts (2 posts)

  1. xuggs
    Member
    Posted 2 years ago #

    Hello,

    I am using the Lightword theme by Andrei Luca as I prefer simple minimalistic looks. The theme is great but I want to add a small addition i.e. time on the posts. Currently it shows as:

    Posted on November 18, 2011

    I would like to have time added as well so it shows something like:

    Posted on November 18, 2011 23:10

    I would need to edit the theme's function php file but I am not a PHP pro so any help appreciated.

    Note: I don't use the sidebox which displays date only.

    Thank you so much.

  2. xuggs
    Member
    Posted 2 years ago #

    Okay I managed to resolve it. For anyone who might find it useful, here goes:

    In the lightword theme folder (wp-content\themes\lightword\) open functions.php and search for the lightword_simple_date() function.

    Change line from:

    echo "<div class=\"simple_date\">".__('Posted on','lightword')." ".get_the_time(__('F j, Y','lightword'))."</div>";

    to:

    echo "<div class=\"simple_date\">".__('Posted on','lightword')." ".get_the_time(__('F jS, Y - H:i','lightword'))."</div>";

    Hope this helps somebody.

Topic Closed

This topic has been closed to new replies.

About this Topic