Skip to content

Instantly share code, notes, and snippets.

@epicdaze
Created June 15, 2011 01:38
Show Gist options
  • Save epicdaze/1026324 to your computer and use it in GitHub Desktop.
Save epicdaze/1026324 to your computer and use it in GitHub Desktop.
#wordpress - add nofollow to comments link #comments #attribute #nofollow
<!-- /* add this to the theme's functions.php to add rel="nofollow" atribute to comments link */ -->
<?php function add_nofollow_to_comments_popup_link ()
{ return 'rel="nofollow"'; }
add_filter ( 'comments_popup_link_attributes', 'add_nofollow_to_comments_popup_link' );
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment