# Show Welcome Link Banner for specific Categories

**URL:** https://meta.discourse.org/t/show-welcome-link-banner-for-specific-categories/309234
**Category:** Feature
**Tags:** css, welcome-link-banner
**Created:** [April 23, 2024, 11:35pm UTC](https://meta.discourse.org/t/show-welcome-link-banner-for-specific-categories/309234 "2024-04-23T23:35:55Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Diego\_Santos](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/diego_santos/32/362118_2.png) [@Diego\_Santos](https://meta.discourse.org/u/Diego_Santos)
#### Post date: [April 23, 2024, 11:35pm UTC](https://meta.discourse.org/t/show-welcome-link-banner-for-specific-categories/309234/1 "2024-04-23T23:35:55Z")

</div>

Hello,

I want to hide the Welcome Banner in the Category Pages (/c/xxx or /c/yyy). Is there any way to set this as a parameter?

---

<div class="post-metadata">

### Author: ![putty](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/putty/32/370902_2.png) [@putty](https://meta.discourse.org/u/putty)
#### Post date: [May 23, 2024, 7:45pm UTC](https://meta.discourse.org/t/show-welcome-link-banner-for-specific-categories/309234/2 "2024-05-23T19:45:53Z")

</div>

This theme component is the perfect blend of the standard banner and the versatile banner. We would love to incorporate this, but we need it to be at a category level. I completely agree with @Diego_Santos’s request.

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [May 24, 2024, 12:40am UTC](https://meta.discourse.org/t/show-welcome-link-banner-for-specific-categories/309234/3 "2024-05-24T00:40:08Z")

</div>

Do you want to hide it for specific categories or show it only in specific categories?

In common / CSS of a theme component:

Hide for a specific category where `<category-slug-here>` = the category slug:

```scss
.category-<category-slug-here> .welcome-link-banner-wrapper {
    display: none;
}

```

Show only for a specific category:

```scss
.welcome-link-banner-wrapper {
    display: none;
}
.category-<category-slug-here> .welcome-link-banner-wrapper {
    display: block;
}

```

Hide for multiple categories:

```scss
$categories: 'general', 'site-feedback', 'staff';

@each $category in $categories {
  .category-#{$category} .welcome-link-banner-wrapper {
    display: none;
  }
}

```

---

<div class="post-metadata">

### Author: ![putty](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/putty/32/370902_2.png) [@putty](https://meta.discourse.org/u/putty)
#### Post date: [May 24, 2024, 1:27pm UTC](https://meta.discourse.org/t/show-welcome-link-banner-for-specific-categories/309234/4 "2024-05-24T13:27:08Z")

</div>

> [@Lilly](#):
>
> Do you want to hide it for specific categories or show it only in specific categories?

Ideally, it is only used in certain categories, but also, ideally, we can individualize the content in the header to that category. We see it as an alternative to a sidebar for that category.

For example in Category A we would want to include a live-status of a service we offer, but in Category B (not related to Category B) we want a way to submit a ticket via a PM.

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [May 24, 2024, 2:23pm UTC](https://meta.discourse.org/t/show-welcome-link-banner-for-specific-categories/309234/5 "2024-05-24T14:23:45Z")

</div>

hmmm, yea this would require some additional features or even a different theme component altogether. To make this component work with individualized content, you’d have to install a different copy of the component for every different banner you want. I mean, I can think of a way to do what you are asking with multiple installs of this component and some css, but it’s a bit of a hacky solution.

> [@putty](#):
>
> We see it as an alternative to a sidebar for that category.

The welcome banner component is meant as a welcome banner. But a category specific info-banner with similar structure built to your needs seems like a solution here. I can definitely see the use case if you are wanting to just have a navigation banner for certain categories (instead of the sidebar, which can be hidden by group/category as well). 🤔

---

<div class="post-metadata">

### Author: ![Heliosurge](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/heliosurge/32/571810_2.png) [@Heliosurge](https://meta.discourse.org/u/Heliosurge)
#### Post date: [May 25, 2024, 9:37am UTC](https://meta.discourse.org/t/show-welcome-link-banner-for-specific-categories/309234/7 "2024-05-25T09:37:43Z")

</div>

Just curious Lilly. Could they make a companion component that overrides the Link Banner Text with an Override to use this text if Cat B and this text if Cat C?

---

<div class="post-metadata">

### Author: ![jordan-violet](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jordan-violet/32/281428_2.png) [@jordan-violet](https://meta.discourse.org/u/jordan-violet)
#### Post date: [May 25, 2024, 10:42am UTC](https://meta.discourse.org/t/show-welcome-link-banner-for-specific-categories/309234/8 "2024-05-25T10:42:03Z")

</div>

It would be great if the functionality of this theme component was the same as the versatile banner, where you can specify routes with regard where it should appear.
