| Summary | A persistent banner is shown at the top of every page that can only be hidden by Admins. | |
| Preview | Theme Creator | |
| Repository | GitHub - NateDhaliwal/discourse-persistent-banner: A theme component for Discourse that cannot be closed by the user. · GitHub | |
| Install Guide | How to install a theme or theme component | |
| New to Discourse Themes? | Beginner’s guide to using Discourse Themes |
Install this theme component
This component displays a banner at the top of every page. Any valid CSS colours can be used. If you are planning to use discourse theme variables, wrap them in var(), so you’ll get something like var(--tertiary-very-low).
There are 7 settings to control the banner.
banner_background_colorchanges the background color of the banner.banner_text_colorchanges the text color of the banner.banner_border_colorchanges the border color of the banner.banner_border_thicknesschanges the border thickness of the banner.banner_text_contentchanges the text of the banner. The text will wrap in the banner if it is longer than 1 line.banner_visiblechanges the visibility of the banner.showto show the banner,hidehides the banner.banner_locationplaces the banner at 1 of the 4 outlets given:above-site-header,below-site-header,above-main-containerandbefore-topic-list.
Special thanks to @Lilly for helping out to sort out the files!






