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
- Limit display to specific pages
- 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 a 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. Choosing a relative time option for the
cookie_lifespan setting will make sure the banner remains closed/expanded/collapsed for that amount of time after the user presses the appropriate button. 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.