Don't Link User Title to a Group

css
groups

(Joshua Rosenfeld) #1

In order to target a user’s title with CSS, they must have an assigned primary group. Once assigned a primary group, their title links to the group per

This is great if the user’s title is related to the group - however, if the only reason for the primary group is to allow CSS targeting, the link is unwanted.

This is currently handled using JS:

<script>
$(document).on("ajaxComplete", function( event ) {
    $('a.user-group').each(function() {
        $(this).replaceWith("<div class='user-group'>" + $(this).html() + "</div>" );
    });
});
</script>

However, JS can be broken with any Discourse update. I’d like to see a new group setting to disable linking the title to a group.