This theme component is an evolution of the very popular Banner themes (and instructions for customizing them). The goal is to provide more ease and flexibility through the use of theme settings.
Preview at Discourse Theme Creator
Below is a highlight of the features:
- Limit display to logged-in users or anonymous users
- Limit display to be exclusively mobile or desktop
- Dismissible, expandable, and always visible options
- Full browser width option
- Color management
- Heading and column customization using HTML (see below for more)
- Persistent state option (see below for more)
Customizing your banner’s content
Banner content is broken up into the main heading and columns. You can have up to 4 columns on your banner, however, the recommended number is 3 or fewer due to width limitations. HTML templates are provided and can be customized to meet your individual needs. You can also control each column’s width and add whatever image or font awesome icon you want to the top of each column.
Using the persistent state option
The persistent state option will rely on up to two cookies. These cookies will contain a name for the banner and true/false value that relates to the banner’s state. If you have any concerns with using cookies on your site, it’s best to avoid using this setting. Setting the expiration date of the cookies will activate the feature. What this will do is make sure the banner remains closed until the end of that date for any user that had clicked on the close button, or until a user clears the cookies for your site. Without this setting, the banner resets with every full page load. If you make a change to the banner and want to ensure that all users see those changes, even those that had previously closed the banner, be sure to change the “cookie name.” It will essentially reset any persistent state, then allow user to close the banner once more.
If you have any ideas for improvement, or issues to report please don’t hesitate to share.