Notifications
Clear all

Script [Solved] disable profile link

6 Posts
4 Users
1 Reactions
4,301 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: 10591
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: 3 years ago

Famed Member
Posts: 3627

@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!!