AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

AI Assistant
Notifications
Clear all

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

3 Posts
2 Users
1 Reactions
4,678 Views
Posts: 5
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@edy-pras)
Active Member
Joined: 3 years ago
[#26931]

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: 10753
Admin
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@robert)
Support Team
Joined: 3 months 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
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

@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


Share: