Remove Comment Time & Link Inside the Date Field in Genesis
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Remove Comment Time & Link Inside the Date Field in Genesis (h/t: http://www.jowaltham.com/customising-comment-date-genesis/) | |
add_filter( 'genesis_show_comment_date', 'topleague_remove_comment_time_and_link' ); | |
function topleague_remove_comment_time_and_link( $comment_date ) { | |
printf( '<p %s>', genesis_attr( 'comment-meta' ) ); | |
printf( '<time %s>', genesis_attr( 'comment-time' ) ); | |
echo esc_html( get_comment_date() ); | |
echo '</time></p>'; | |
// Return false so that the parent function doesn't also output the comment date and time | |
return false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment