# Use tag and category banner components together

**URL:** https://meta.discourse.org/t/use-tag-and-category-banner-components-together/270622
**Category:** UX
**Tags:** completed, category-banners, tag-banners
**Created:** [July 7, 2020, 4:31am UTC](https://meta.discourse.org/t/use-tag-and-category-banner-components-together/270622 "2020-07-07T04:31:31Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![markersocial](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/markersocial/32/170136_2.png) [@markersocial](https://meta.discourse.org/u/markersocial)
#### Post date: [July 7, 2020, 4:31am UTC](https://meta.discourse.org/t/use-tag-and-category-banner-components-together/270622/1 "2020-07-07T04:31:31Z")

</div>

Really excellent theme component! Is there any way to display banners for lists that are using both a category and tag simultaneously?

---

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [July 7, 2020, 3:04pm UTC](https://meta.discourse.org/t/use-tag-and-category-banner-components-together/270622/2 "2020-07-07T15:04:21Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![radek3911](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/radek3911/32/202122_2.png) [@radek3911](https://meta.discourse.org/u/radek3911)
#### Post date: [December 4, 2020, 12:51am UTC](https://meta.discourse.org/t/use-tag-and-category-banner-components-together/270622/3 "2020-12-04T00:51:22Z")

</div>

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](https://github.com/discourse/discourse-tag-banners/pull/1)

---

<div class="post-metadata">

### Author: ![markersocial](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/markersocial/32/170136_2.png) [@markersocial](https://meta.discourse.org/u/markersocial)
#### Post date: [December 4, 2020, 10:55am UTC](https://meta.discourse.org/t/use-tag-and-category-banner-components-together/270622/4 "2020-12-04T10:55:16Z")

</div>

Fantastic! 😃 Thanks @radek3911!

 ![](https://media.tenor.com/videos/d96fa7256cd46a64037c4d409a4300e3/mp4)

---

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [May 3, 2023, 4:55pm UTC](https://meta.discourse.org/t/use-tag-and-category-banner-components-together/270622/5 "2023-05-03T16:55:31Z")

</div>

I’ve just made an update to this component that makes it integrate better with [Category Banners](https://meta.discourse.org/t/category-banners/86241)

[https://github.com/discourse/discourse-tag-banners/pull/9](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:

 ![image](https://global.discourse-cdn.com/meta/original/4X/6/6/1/661c672287da80fe28b7d629b9517fe098ee440a.png)

The tag banner will still appear as expected when filtered only to a tag.

 ![Screenshot 2023-05-03 at 12.55.21 PM](https://global.discourse-cdn.com/meta/original/4X/4/e/a/4eac15298e9190b059852be253dd44dfeecd97c6.png)

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [July 5, 2023, 9:38am UTC](https://meta.discourse.org/t/use-tag-and-category-banner-components-together/270622/6 "2023-07-05T09:38:55Z")

</div>


