Support » Theme: Openstrap » Last Updated Instead of Date Created

  • Resolved GamerShubham


    I’m using Openstrap with a child theme, Can anyone tell me how to show Last Updated Date instead of date when the post/page was created?

    Text should be like – Last updated on June 21, 2015.

Viewing 1 replies (of 1 total)
  • I’ve fixed it myself. -_- So, if anyone (using openstrap) want to show last updated date then go to ‘content-single.php‘ and look for this code-

    printf( __( '<span class="post_date"><i class="icon-calendar"></i> %2$s by %3$s', 'openstrap' ),'meta-prep meta-prep-author',
    sprintf( '<a href="%1$s" title="%2$s" rel="bookmark">%3$s</a></span>',
    esc_attr( get_the_time() ),

    And replace it with the below code:

    printf( __( '<i class="icon-calendar"></i> Last Updated on %2$s by %3$s', 'openstrap' ),'meta-prep meta-prep-author',
    sprintf( get_the_modified_date('F j, Y')
Viewing 1 replies (of 1 total)
  • The topic ‘Last Updated Instead of Date Created’ is closed to new replies.