Created
June 28, 2017 07:27
-
-
Save topleague/fcda4796c4ece70757bc0f982c38739a to your computer and use it in GitHub Desktop.
Remove Comment Time & Link Inside the Date Field in Genesis
This file contains hidden or 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