Add this to your child theme’s functions.php file:
/* GET DETAILS
================================================== */
if ( ! function_exists( 'sf_get_post_details' ) ) {
function sf_get_post_details( $postID ) {
global $sf_options;
$single_author = $sf_options['single_author'];
$remove_dates = $sf_options['remove_dates'];
$post_author = get_the_author_link();
$post_date = get_the_date();
$post_date_str = get_the_date('Y-m-d');
$post_details = "";
if ( $single_author && ! $remove_dates ) {
$post_details .= '<div class="blog-item-details"><time class="post-date" datetime="' . $post_date_str . '">' . sprintf( __( '%1$s', 'swiftframework' ), $post_date ) . '</time></div>';
} else if ( ! $remove_dates ) {
$post_details .= '<div class="post-item-details"><time class="post-date" datetime="' . $post_date_str . '">' . $post_date . '</time><span class="author"> ' . sprintf( __( 'by <a href="%2$s" rel="author" itemprop="author">%1$s</a>', 'swiftframework' ), $post_author, get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '</span></div>';
} else if ( ! $single_author ) {
$post_details .= '<div class="post-item-details"><span class="author">' . sprintf( __( 'By <a href="%2$s" rel="author" itemprop="author">%1$s</a>', 'swiftframework' ), $post_author, get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '</span></div>';
}
return $post_details;
}
}
And edit the 3 lines
– Kyle