Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Bootstrap Site Alert

1,596 sites Security covered Drupal 10–11 Bootstrap ecosystem
View on drupal.org

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.

Check Out The Documentation

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

Tracked releases
5
Tracked since
Feb 2025
Latest release
7 months ago
Releases (12 mo)
1 ▼ from 4
Maintenance
Slowing

Release Timeline

Releases

Version Type Core Release date
3.0.5 Stable 10–11 Jan 2, 2026
3.0.4 Stable 10–11 Apr 23, 2025
8.x-1.13 Stable 8–10 Apr 23, 2025
3.0.3 Stable 10–11 Feb 4, 2025
8.x-2.0-beta12 Pre-release 10–11 Feb 4, 2025