Can Announcement Bars Be Page Specific? #10952
-
DescriptionThis isn't a bug or something that needs a reprex. Right now, it seems that if you want to use the announcement bar, you are limited to rendering it across the entire site. I have a use case where I'm wanting to limit the announcement bar to two pages on my site (which has way more than two pages) and, currently, I'm struggling to clarify the answer to my question on this repo's previously existing issues, discussion, and via general searching on Google and Stack Overflow. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
See |
Beta Was this translation helpful? Give feedback.
-
I tried @mcanouil's solution, but realized it was much easier to add this chunk at the bottom of pages I wanted to hide the announcement alert. This worked really well: ```{ojs}
html`<style>
#quarto-announcement {
display: none !important;
}
</style>
``` |
Beta Was this translation helpful? Give feedback.
I tried @mcanouil's solution, but realized it was much easier to add this chunk at the bottom of pages I wanted to hide the announcement alert. This worked really well: