wpDiscuz - WordPress Comment Plugin
Share:
Notifications
Clear all

[Solved] no follow on Login links?


lukem
Posts: 2
Topic starter
(@lukem)
New Member
Joined: 2 months ago

How would I go about adding rel=“nofollow” to the Login links in the comments on my posts?

2 Replies
Asti
Posts: 3860
 Asti
Support
(@asti)
Support member
Joined: 4 years ago

@lukem,

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.

lukem
Posts: 2
Topic starter
(@lukem)
New Member
Joined: 2 months ago

Thanks!

Share: