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
<?php | |
/** | |
* Custom comment heading | |
* | |
* @since 1.0.0 | |
* @param string $title | |
* @return string | |
*/ | |
function ja_comment_heading( $title ) { | |
return '<h3><strong>' . get_comments_number() . ' Responses to</strong> ' . get_the_title() . '</h3>'; | |
} | |
add_filter( 'genesis_title_comments', 'ja_comment_heading' ); |
Questions, comments, or suggestion for improvement? Leave a comment on the GitHub Gist page.