Notifications
Clear all

Limited Support

Our team is currently on holiday, so support will be limited during this period. Response times may be slower than usual, and some inquiries may be delayed.
We appreciate your patience and understanding, and we’ll resume our usual support by the end of August.

 

Script [Solved] disable profile link

6 Posts
4 Users
1 Reactions
4,577 Views
Posts: 23
Topic starter
(@mitchcan)
Eminent Member
Joined: 7 years ago

How do I remove/disable the link for the author name on posts/replies? I want to display the name, but not have it link to the profile.

Thanks.

5 Replies
Robert
Posts: 10616
Admin
(@robert)
Support Team
Joined: 9 years ago

Put this code snippets in your current active WordPress theme functions.php

function wpforo_function_to_remove_profile_link($profile_url){
return false;
}
add_filter( 'wpforo_profile_url', 'wpforo_function_to_remove_profile_link', 10, 3 );
Posts: 23
Topic starter
(@mitchcan)
Eminent Member
Joined: 7 years ago

Works great. Thanks.

Posts: 3
(@dw89au)
Active Member
Joined: 2 years ago

Just wondering if there is a new way to do this? The suggestion no longer seems to work. Thanks

1 Reply
Chris
(@chris)
Joined: 4 years ago

Famed Member
Posts: 3611

@dw89au,

Try this Code:

add_filter( 'wpforo_member_link_clickable', '__return_false' );
Posts: 3
(@dw89au)
Active Member
Joined: 2 years ago

That was it, thank you!!