Created
January 3, 2014 20:03
-
-
Save WebEndevSnippets/8245500 to your computer and use it in GitHub Desktop.
Genesis : Add comment count and remove standard comment title
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
add_action( 'genesis_before_comments' , 'webendev_comment_count' ); | |
/** | |
* Add comment count and remove standard comment title | |
* | |
*/ | |
function webendev_comment_count () { | |
add_filter( 'genesis_title_comments', '_return_null' ); | |
if ( is_single() ) { | |
if ( have_comments() ) { | |
echo '<h3>'; | |
comments_number( 'No Comments', '(1) Comment', '(%) Comments' ); | |
echo '</h3>'; | |
} | |
} | |
} |
Exactly what I was looking for thank you very much.
P/S: friday night funkin
It's great to have this piece of code. I added it on my wordle nyt site and it works great.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I worked forever but couldn't get wordle online website. Good to find this information.