Created
June 15, 2011 01:38
-
-
Save epicdaze/1026324 to your computer and use it in GitHub Desktop.
#wordpress - add nofollow to comments link #comments #attribute #nofollow
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- /* 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