Oct 14, 2021 8:17 pm
How would I go about adding rel=“nofollow” to the Login links in the comments on my posts?
2 Replies
Oct 15, 2021 8:25 am
Please use the following hook-code:
add_filter('wpdiscuz_login_link',function($link){ $link = str_replace('<a href="', '<a rel="nofollow" href="', $link); return $link; });
Put it in the active theme functions.php file.
Oct 15, 2021 3:43 pm
Thanks!