Table of contents

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 JS 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 info.
  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 21 March 2019. It needs to be reviewed again on 21 June 2019 by the page owner #govuk-2ndline .
This page was set to be reviewed before 21 June 2019 by the page owner #govuk-2ndline. This might mean the content is out of date.