Hide share / invite buttons on post pages


(Patrick) #1

I know that it is possible to hide the buttons: like - share - flag - etc in de post menu.
But I want also to change/hide these buttons at the bottom of these pages.

Is that possible ?


(Felix Freiberger) #2

Sure! In Admin -> Customize, add a CSS rule with this code:

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

(Patrick) #3

Great thanks!
Last question, and how about the invite button ? I cant find the proper ccs code ?


(Felix Freiberger) #4

That’s more tricky. Because the button has no unique class, there’s no way to hide it specifically – but the following code hides the fourth button, which just happens to be the invite button in the current Discourse version :wink:

#topic-footer-main-buttons button:nth-child(4) {
    display: none;
}