In Genesis, comment_author_says_text filter can be used to customize the text that appears after the name of person that wrote the comment. By default it is says.
The standard code for changing this is:
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
//* Modify the author says text in comments | |
add_filter( 'comment_author_says_text', 'sp_comment_author_says_text' ); | |
function sp_comment_author_says_text() { | |
return 'author says'; | |
} |
But what if you wanted to change this text depending on who left the comment? Adding the following in child theme's functions.php changes says to - the post author says next to commentator's name when he/she is also the post author and from says to - the commentator says for all other commentators.
Before:
After:
To view the full content, please sign up for the membership.
Already a member? Log in below or here.