Skip to content

Instantly share code, notes, and snippets.

@WebEndevSnippets
Created January 3, 2014 20:03
Show Gist options
  • Save WebEndevSnippets/8245500 to your computer and use it in GitHub Desktop.
Save WebEndevSnippets/8245500 to your computer and use it in GitHub Desktop.
Genesis : Add comment count and remove standard comment title
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>';
}
}
}
@quanghieucorp
Copy link

I worked forever but couldn't get wordle online website. Good to find this information.

@hduckyman
Copy link

Exactly what I was looking for thank you very much.
P/S: friday night funkin

@phuongle22
Copy link

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