Really excellent theme component! Is there any way to display banners for lists that are using both a category and tag simultaneously?
AI-generated summary
The discussion revolves around using tag and category banner components together in Discourse. Initially, markersocial inquired about displaying banners for lists with both a category and tag. awesomerobot mentioned that combining the components was not possible at that time, but later planned to handle it in theme settings.
However, radek3911 found a solution and created a pull request (PR) for it. markersocial expressed gratitude towards radek3911.
Later, awesomerobot updated the component to integrate better with Category Banners. When both components are installed and a category and tag are filtered, the tag name will be displayed within the category banner instead of stacking the banners.
Not at the moment… at some point it probably does make sense to combine this tag component with the category banner component… then where the banners are shown can probably be handled in the theme settings if someone wants it one way or another.
I think I found a way. I will post a PR tonight probably if I manage to get it work.
Edit: Alright PR is ready
https://github.com/discourse/discourse-tag-banners/pull/1
Fantastic!
Thanks @radek3911!
I’ve just made an update to this component that makes it integrate better with Category Banners
https://github.com/discourse/discourse-tag-banners/pull/9
When both components are installed and you’re filtered to a category and a tag, rather than stacking the banners, now the tag name will be shown within the category banner:
The tag banner will still appear as expected when filtered only to a tag.

