Skip to main content
Table of contents

Publishing

Deploy non-emergency global banner

A site-wide banner can be activated to convey important information on GOV.UK which is not deemed emergency level information. Unlike the emergency banner, the global banner disappears after someone has seen it twice (controlled by a cookie).

The file app/views/notifications/_global_bar.html.erb in static contains the necessary minified JavaScript and markup to activate and render the banner.

Activating the global banner

In app/views/notifications/_global_bar.html.erb,

  1. Update the variables title, information, link_href and link_text with the relevant information.
  2. Update the show_global_bar variable to true
  3. Deploy static

The usual rules apply with static template caching.

screenshot

Removing the global banner

In app/views/notifications/_global_bar.html.erb,

  1. Update the show_global_bar variable to false
  2. Deploy static
This page was last reviewed on 26 September 2019. It needs to be reviewed again on 26 March 2020 by the page owner #govuk-2ndline .
This page was set to be reviewed before 26 March 2020 by the page owner #govuk-2ndline. This might mean the content is out of date.