By default, bbPress is changing all external links in the content to include rel attribute set to ‘nofollow’.

bbPress doesn’t have any settings for this, but this can be achieved using custom code or the plugin.

Custom Code

Just include this code in your theme functions.php:

// disable adding 'nofollow' for topics
remove_filter('bbp_get_topic_content', 'bbp_rel_nofollow', 50);

// disable adding 'nofollow' for replies
remove_filter('bbp_get_reply_content', 'bbp_rel_nofollow', 50);

Using a plugin

If you don’t want to add custom code, you might wanna consider one of the plugins that can do this:

Please, take a few seconds and rate this answer
No votes yet.
Please wait...

Question answered by

Milan Petrovic

Programmer since the age of 12 and now WordPress developer with more than 8 years of WordPress experience, author of more than 100 plugins and more than 20 themes.

GD bbPress Toolbox Pro - Enhancing WordPress forums powered by bbPress

The Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

WP Rocket - Make WordPress Load Fast in a Few Clicks