Notifications
Clear all

Limited Support

Our support team is currently on holiday from December 25, 2025 to January 7, 2026, and replies may be delayed during this period.

We appreciate your patience and understanding while our team is away. Thank you for being part of the wpForo community!

Merry Christmas and Happy Holidays! 🎄

Script [Solved] How to change Dofollow link for website link in participant profile?

3 Posts
2 Users
1 Reactions
3,249 Views
Posts: 5
Topic starter
(@edy-pras)
Active Member
Joined: 3 years ago

Hi, I want to change link only in participant profil website to DoFollow rell. But not for links on forum topics. Can anyone help me?


2 Replies
Robert
Posts: 10603
Admin
(@robert)
Support Team
Joined: 10 years ago

Hi @edy-pras,

You can use this code to remove the nofollow rel from the profile website links. Put this code in a PHP snippet of the Code Snippets plugin or insert it directly in the functions.php file of the current active WordPress theme.

add_filter('wpforo_form_prepare_values', function( $field ){
if( 'url' === wpfval($field, 'type') ){
$field['value'] = str_replace('rel="nofollow"', '', $field['value']);
}
return $field;
}, 10);

1 Reply
(@edy-pras)
Joined: 3 years ago

Active Member
Posts: 5

@robert Thank you for the code you provided, I have installed it and it works on my forum. Once again, thank you very much for the help you provide