wpDiscuz - WordPress Comment Plugin
Share:
Notifications
Clear all

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


maiqeru
Posts: 6
Topic starter
(@maiqeru)
Active Member
Joined: 3 months 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: 3943
 Asti
Support
(@asti)
Support member
Joined: 4 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: