Hiding post buttons

AI-generated summary

The discussion revolves around hiding post buttons in Discourse. avron inquires about controlling the visibility of buttons below a topic and shares their success in hiding buttons within a post using a specific setting. cpradio suggests using CSS to achieve this. Ivan_Rapekas provides CSS examples to hide various topic buttons, including single buttons (e.g., Assign, Defer, Flag) and multiple buttons at once. They also explain the process of applying these changes to external themes by forking the original Github repo and updating the theme in Discourse.

Is it possible to control the visibility of the buttons below a topic? I refer specifically to:

I’ve been able to hide the buttons within the post:

Using:

But do similar settings exist for the the buttons identified above?

2 « J'aime »

You can use CSS to do it.

1 « J'aime »

Exemples CSS :

// Masquer les boutons de sujet
// Assigner
#topic-footer-button-assign {
	display: none;
}

// Reporter
#topic-footer-button-defer {
	display: none;
}

// Marquer
#topic-footer-button-flag {
	display: none;
}

// Marque-page
#topic-footer-button-bookmark {
	display: none;
}

// Partager
#topic-footer-button-share-and-invite {
	display: none;
}

ou

// Masquer les boutons principaux en une fois mais Suivre
#topic-footer-buttons .topic-footer-main-buttons {
	display: none;
}

ou

// Masquer tous les boutons, y compris Suivre
#topic-footer-buttons {
	display: none;
}

Pour appliquer ce code aux thèmes externes, vous devez forker le dépôt Github original, réinstaller le thème en utilisant l’URL de votre dépôt, appliquer ce code à votre dépôt (desktop.scss etc.), valider les modifications et mettre à jour le thème dans Discourse.

2 « J'aime »