Unlink Comments Link On Archives In Genesis

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.

Related Code Snippets

Was This Tutorial Helpful?

Free

$0

Access only to all free tutorials per month.



Monthly

$75

Access to 10 premium tutorials per month.


Tutorial Request


Includes code guarantee and coding support.

Yearly

$500

Access to 15 premium tutorials per month.


Monthly Tutorial Request


Includes code guarantee and priority coding support.