Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #13190

    I like this recent posts widget, but I didn’t like showing the hours and minutes in addition to the dates listed.

    To do this I modified line 381 in class-framework-widgets.php, changing

    echo "<span class='news-time'>".get_the_time("F j, Y, g:i a")."</span>";

    to

    echo "<span class='news-time'>".get_the_time("F j, Y")."</span>";

    #78192

    Hi fitzpatrick51,

    I’d like to do the same but can you please tell where I find class-framework-widgets.php? I can’t find any file resembling it in the Themes Editor.

    Many thanks

    Andrew

    #78193

    Hi Andrew,

    You can find it in: wp-contentthemesflashlightframeworkphpclass-framework-widgets.php.

    Thank you fitzpatrick51 for sharing this information, this would surely be a great help to anyone who wants to customize their flashlight theme. :)

    Cheers,

    Ismael

    #78194

    Many thanks Ismael.

    Outstanding speed of reply with clear concise information.

    Regards

    Andrew

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘remove hours and minutes from time posted in "Flash Light latest news" widget’ is closed to new replies.