Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Alert Bar

No security coverage Maintenance fixes only 8 sites

The alert_bar module adds a configurable alert banner to your website. This banner can display a message, a close button, and a "Learn More" link. Once dismissed, the alert will not reappear during the user's current session.

This module provides a simple themeable alert bar.

Functionality

This module creates a block which can be placed normally. The alert can be managed through a configuration form found at Content > Manage alert bar.

Out of the box, the alert block contains a message, a close button and a "Learn More" link. When clicked, the close button removes a "show-alert" class from the block, and creates a session cookie to prevent the "show-alert" class from being added again (for that session).

Theming

A twig file (alert-bar.html.twig) is provided with the module. It can be overridden at the theme level. A stylesheet has been included to enable the close button.

Drupal 9–10 · not 11

Ask your assistant about Alert Bar

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

  • block Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
3
Tracked since
Jan 2024
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Release Timeline

Releases

Version Type Core PHP Release date
1.0.1 Stable 9–10 Jan 27, 2024
1.0.0 Stable 9–10 Jan 27, 2024
1.0.x-dev Dev 9–10 Jan 27, 2024