Support » Themes and Templates » Lightword Theme adding time to posts

  • Resolved xuggs



    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.

Viewing 1 replies (of 1 total)
  • xuggs


    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>";


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

    Hope this helps somebody.

Viewing 1 replies (of 1 total)
  • The topic ‘Lightword Theme adding time to posts’ is closed to new replies.