Overriding the phase banner

The GOV.UK phase banner component is included by default in the layout templates and displays a Beta label. If you want to override this to display the Alpha phase instead, you need to make the change directly in the layout templates.

To do this, you should replace {% include 'DfE/Content/PhaseBanner/Beta' %} with {% include 'DfE/Content/PhaseBanner/Alpha' %} in your DfE/Layouts/2ColumnWideLeft and DfE/Layouts/1Column templates.

This code will replace the default Beta phase banner with the Alpha version, ensuring consistency across the site.

If you want to modify the custom content for the phase banner directly, such as updating the feedback link, you can find and amend the appropriate web template DfE/Content/PhaseBanner/Beta or DfE/Content/PhaseBanner/Alpha. This is also helpful if you wish to modify the banner's message further.

Remember that the phase banner is part of the layout and should be consistent throughout your site. This approach makes sure that once the layout is extended, the correct phase banner is applied to every page automatically.

For further details on how the phase banner should be used, refer to the official GOV.UK Design System Phase Banner documentation (opens in a new tab).