Trying to hide the Share button with CSS

Forum is private, so want to discourage users from trying to share URLs. Already removed share from the post menu setting, but the button persists. Also tried CSS from various posts here, none seem to work. Is there a known CSS that definitely works to remove Share from the current distribution? Thanks.

I got this to work:

.topic-footer-main-buttons .share.btn {
    display: none; 
}

Now trying to kill the Invite button!

1 Like

Specifically which button? The one at the bottom of the topic?

If so, try this:

.topic-footer-main-buttons .btn-default.share {
    display: none;
}
.topic-footer-main-buttons .btn-default.invite-topic{
    display: none;
}

Also, please try and select a category when you make posts here on Meta.

3 Likes

Yeah, that’s the one I ultimately used. Now trying to kill the Invite button at the bottom of posts. Forgot to choose the category, sorry. I wish there was a way to force users to select a category when you don’t want to use uncategorized!

Actually, since regular users can’t see Invite under my configuration, it’s not a big deal.

1 Like

There is, disable #uncategorized. We do not want to disable it here on Meta as there are truly uncategorizable topics, but this isn’t one :wink:.

As for invite, see my reply above.

1 Like