Skip to content

Instantly share code, notes, and snippets.

@deeman
Created October 5, 2019 13:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deeman/9acc10f08f16f85402a810d5ba70cf49 to your computer and use it in GitHub Desktop.
Save deeman/9acc10f08f16f85402a810d5ba70cf49 to your computer and use it in GitHub Desktop.
Genesis Framework: Modify the Comments Link Text
<?php
//* Do NOT include the opening php tag shown above. Copy the code shown below.
//* Modify the comment link text in comments
add_filter( 'genesis_post_info', 'sp_post_info_filter' );
function sp_post_info_filter( $post_info ) {
return '[post_comments zero="Leave a Comment" one="1 Comment" more="% Comments"]';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment