This module displays a site-wide alert message at the top of every page, independent of theme setup. It requires a Bootstrap-based theme or the inclusion of Bootstrap CSS and JavaScript.
Puts a site wide bootstrap themed alert message on the top of every page.
I made this module because some of the other existing modules came close in functionality. However, we didn't want to rely on blocks or panels or anything with a theme layer. We needed something fast and easy with a WYSIWYG enabled message and so this module was born. We use hook_page_alter (D7) / hook_page_top (D8) to display the message and so it is independent of any setup you may have on the site.
You will need a Bootstrap based theme to use this, For Bootstrap 4, I suggest Bootstrap Barrio. For Bootstrap 3, I suggest Kalatheme or Bootstrap.
People without Bootstrap
You can technically still use this, it just depends on the front end library Bootstrap for CSS / JS.
I did however add the CSS / JS in the Documentation for this module so EVERYONE can use it!
3.0.x replaces 8.x-1.x.
There is a clear distinction between 8.x-1.x and 8.x-2.x.
Upgrade from 8.x-1.x to 3.0.x
The 3.0.x is the recommended stable release to use for Drupal 10+. For those using 8.x-1.x you may safely upgrade to the semantic version release 3.0.x if you're on Drupal 10+.
Difference between 3.0.x & 8.x-2.x
- The 3.0.x version is a config form that uses the state API based to render the alerts.
- The 2.0 version is content based and uses a view to render the alerts.
Why the differences?
Basically the 2.0 version arose from a client request. They wanted content workflow and scheduling around the site alerts. Instead of spending a ton of time trying to get the existing module to do this, I made the content based version. Both versions are basically the same thing functionally.
- If you want a simple non content based solution, then choose the 3.0.x version.
- If you need a more robust version that uses node entities, then choose the 2.0 version.
Similar Modules
Site Alert - https://www.drupal.org/project/site_alert
This module was very close to what we wanted originally. We didn't need a date, something in a panel or block, and we needed a configurable WYSIWYG. Inspiration was drawn from this module. Good module though.
Sitewide Alert Message - https://www.drupal.org/project/sitewide_msg
Close, but didn't really hit the mark on what we needed like site_alert.
Alerts - https://www.drupal.org/project/alerts
Works by attaching an alert to individual nodes. No way for a site administrator to create a site wide alert.
Depends on
Dependencies of the latest stable release
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
Activity
Release Timeline
Releases
| Version | Type | Core | Notes | Release date | |
|---|---|---|---|---|---|
| 3.0.5 | Stable | 10–11 | Maintenance release | Jan 2, 2026 | |
| 3.0.4 | Stable | 10–11 | Security advisory release | Apr 23, 2025 | |
| 8.x-1.13 | Stable | 8–10 | Security advisory release | Apr 23, 2025 | |
| 3.0.3 | Stable | 10–11 | Drupal 11 compatibility | Feb 4, 2025 | |
| 8.x-2.0-beta12 | Pre-release | 10–11 | Drupal 11 compatibility, maintenance update | Feb 4, 2025 |