Banner
One of the fields you can add to the Frontmatter is banner
. It displays a prominent section at the top of the page and supports the use of HTML for links and formatting.
Only use it to alert about disruptive situations and take note to remove it when applicable.
---title: Bannerdescription: How to display a banner at the top of the page and when to use it.banner: content: Do <strong>not</strong> use banners in the <a href="/style-guide/frontmatter/">Frontmatter</a> unless a change will cause customer application to break.---
You can make a banner dismissible (for some number of days) by adding the dismissible
property to the banner object.
---title: Bannerdescription: How to display a banner at the top of the page and when to use it.banner: content: Do <strong>not</strong> use banners in the <a href="/style-guide/frontmatter/">Frontmatter</a> unless a change will cause customer application to break. dismissible: id: banner-example days: 7 # default---
Any other banner with the same dismissible_id
will be dismissed when the banner is displayed.
The note banner is used to alert about important information.
---title: Bannerdescription: How to display a banner at the top of the page and when to use it.banner: content: Ensure you read this! type: note---
The tip banner is used to alert about important suggestions.
---title: Bannerdescription: How to display a banner at the top of the page and when to use it.banner: content: Consider this alternative! type: tip---
The caution banner is used to warn readers of upcoming disruptive changes.
---title: Bannerdescription: How to display a banner at the top of the page and when to use it.banner: content: This is deprecated and will break on <strong>1970-01-01</strong>! type: caution---
The danger banner is used to alert about errors.
---title: Bannerdescription: How to display a banner at the top of the page and when to use it.banner: content: This has been removed! type: danger---
The default banner is used in all other circumstances.
---title: Bannerdescription: How to display a banner at the top of the page and when to use it.banner: content: Do <strong>not</strong> use banners in the <a href="/style-guide/frontmatter/">Frontmatter</a> unless a change will cause customer application to break.---
Was this helpful?
- Resources
- API
- New to Cloudflare?
- Products
- Sponsorships
- Open Source
- Support
- Help Center
- System Status
- Compliance
- GDPR
- Company
- cloudflare.com
- Our team
- Careers
- 2025 Cloudflare, Inc.
- Privacy Policy
- Terms of Use
- Report Security Issues
- Trademark