Notifications
Clear all

Script [Solved] disable profile link

6 Posts
4 Users
1 Likes
4,035 Views
Posts: 23
Topic starter
(@mitchcan)
Eminent Member
Joined: 6 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: 10499
Admin
(@robert)
Support Team
Joined: 8 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: 6 years ago

Works great. Thanks.

Posts: 3
(@dw89au)
Active Member
Joined: 1 year 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: 3 years ago

Famed Member
Posts: 3650

@dw89au,

Try this Code:

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

That was it, thank you!!