Skip to content
Discussion options

You must be logged in to vote

Yes

Solution 1: swizzle the announcement bar, use React-Router useLocation() hook and render nothing when your condition is met

Solution 2: use CSS classes added to the <HTML> element to hide the announcement bar for specific pages/docs

html.docs-wrapper.docs-doc-id-introduction div[class*="announcementBar"] {
  display: none;
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ccamusso
Comment options

Answer selected by ccamusso
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants