-
|
Is it possible enable Announcement Bar but hide it on a specific page? |
Beta Was this translation helpful? Give feedback.
Answered by
slorber
Jun 29, 2022
Replies: 1 comment 1 reply
-
|
Yes Solution 1: swizzle the announcement bar, use React-Router Solution 2: use CSS classes added to the html.docs-wrapper.docs-doc-id-introduction div[class*="announcementBar"] {
display: none;
} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ccamusso
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes
Solution 1: swizzle the announcement bar, use React-Router
useLocation()hook and render nothing when your condition is metSolution 2: use CSS classes added to the
<HTML>element to hide the announcement bar for specific pages/docs