• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WP SITES

2662

Original Genesis Tutorials & 5000+ Guaranteed Code

Snippets

  • Support
  • Newsletter
  • Videos
  • Log in

Premium Member? - Request custom code

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.

Register for full access

Related Code Snippets

  • 2 Ways To Modify The Leave a Comment Text in Genesis Post Info

Comments Entry Meta

Reader Interactions

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

PHP Code

template_include

get_body_class

if else

array

class_exists

foreach

sprintf

add_action

printf

variable

Advertise · WPEngine · Genesis · Log in

  • How Premium Membership Works
  • Sign Up
  • Support
  • Subscription Details/Invoice
  • Tagged Tutorials
  • Access-Download Problems