The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
CSS code to make us...
 
Share:
Notifications
Clear all

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

2 Posts
2 Users
0 Reactions
1,474 Views
Posts: 6
Topic starter
(@maiqeru)
Active Member
Joined: 3 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: 7229
 Asti
Support
(@asti)
Illustrious Member
Joined: 7 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: