The code in this tutorial unlinks the comment count which uses the get_comments_link()
function inside the post_comments
shortcode so it doesn’t link to single posts from archives. The link still works on single posts so you can click the link which scrolls to the comments list below the post content.
The demo video shows you exactly what the code does :
This code will also unlink the comments link from entries displayed using the Genesis Featured Posts widget.
Tested using the Metro Pro child theme by StudioPress.
Here’s the code for members which you can copy & paste to the end of your child themes functions.php file.
Was This Tutorial Helpful?