The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
CSS code to make us...
 
Share:
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.

 

[Solved] CSS code to make username un-clickable on top of comments section

2 Posts
2 Users
0 Reactions
2,233 Views
Posts: 5
Topic starter
(@maiqeru)
Active Member
Joined: 4 years ago

Users don't need to access this area so it would be good to disable the pointer just on the username (attached). Log out link needs to be active obviously.

Thanks.

Screen Shot 2021 09 30 at 01.09.24

 

1 Reply
Asti
Posts: 8075
 Asti
Support
(@asti)
Illustrious Member
Joined: 8 years ago

You can use the hook code below:

add_filter("wpdiscuz_user_info_and_logout_link", function ($logout_text) {
    $parts = explode("|", $logout_text);
    if (!empty($parts)) {
        $logout_text = strip_tags($parts[0]) . " | " .$parts[1];
    }
    return $logout_text;
});

Put the hook code in the WordPress active theme functions.php file (more information how to add insert custom code):

Share: