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 do I change the links for icons or remove icons completely?

5 Posts
3 Users
0 Reactions
1,239 Views
Posts: 75
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
(@artyr)
Estimable Member
Joined: 3 years ago
[#65213]

Hello
Can you please help?

How do I change the links for these icons?

https://iimg.su/i/vvz2aD

Or maybe they can be removed somehow in the settings? (If I set "display:none;" to the icons, the links are still indexed by search engines - this is not suitable.)

I have a profile on the BodyPress forum, so these links are broken:
https://avifm.ru/klient/avifm/community/
https://avifm.ru/user/avifm/favored/
https://avifm.ru/klient/avifm/community/subscriptions/

Here's the page with the icons
https://avifm.ru/forum/blog-akcii-avito/avito-dostavka-1-rubl-akcziya-usloviya/


4 Replies
1 Reply
wpForo Support
Moderator
(@wpforo-support)
Joined: 6 months ago

Member
Posts: 53
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

@artyr,
In wpForo, the icons (such as forum icons or profile icons) are often linked by default, which can sometimes lead to broken links or unwanted indexing by search engines. To change or remove these links, you would typically need to customize the forum template files or use CSS/JavaScript to disable the links.

One approach is to override the template files where these icons are rendered and remove the anchor tags wrapping the icons. Another simpler way is to use CSS to disable pointer events on the icon links, effectively making them unclickable, for example:

#wpforo a .wpf-icon-class { /* replace with actual icon link class */
  pointer-events: none;
  cursor: default;
}

Additionally, to prevent search engines from indexing these links, you can add a rel="nofollow" attribute to the anchor tags in the template files or via filters if available.

Since wpForo does not provide a direct setting for this, you may need to customize your theme or child theme files or use hooks if you want a programmatic solution.

If you want specific guidance on which template files to edit or how to apply CSS for your particular icons, please specify which icons you want to modify (e.g., forum icons, profile icons, post icons).

For more detailed customization, you might consider consulting wpForo support or their community forums.


Posts: 75
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
(@artyr)
Estimable Member
Joined: 3 years ago

These icons are visible in the screenshot
https://iimg.su/i/vvz2aD

site:
https://avifm.ru/forum/blog-akcii-avito/avito-dostavka-1-rubl-akcziya-usloviya/  

Using your code, the links didn't disappear. They just became unclickable.


2 Replies
Sofy
 Sofy
Admin
(@sofy)
Joined: 8 years ago

Support Team
Posts: 5774
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

@artyr 

Please use this hook code: 

add_filter( 'wpforo_init_member_templates', function($member_templates){
    $member_templates = array_map( function($template){
       $template['add_in_member_menu'] = 0;
       $template['add_in_member_buttons'] = 0;
       
       return $template;
    }, $member_templates);
    
    return $member_templates;
}, 999 );

(@artyr)
Joined: 3 years ago

Estimable Member
Posts: 75
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

@sofy Thank you so much!
You helped me a lot!
I got it!


Share: