# 如果“分类”是顶部菜单的第一项，固定横幅不会在首页显示

**URL:** <https://meta.discourse.org/t/pinned-banner-doesnt-show-in-front-page-if-categories-is-the-first-item-in-top-menu/85906>\
**Category:** Support\
**Created:** [2018年四月22日 13:57 UTC](https://meta.discourse.org/t/pinned-banner-doesnt-show-in-front-page-if-categories-is-the-first-item-in-top-menu/85906 "2018-04-22T13:57:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![joshm](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/joshm/32/135134_2.png) [@joshm](https://meta.discourse.org/u/joshm)\
**Post date:** [2018年四月22日 13:57 UTC](https://meta.discourse.org/t/pinned-banner-doesnt-show-in-front-page-if-categories-is-the-first-item-in-top-menu/85906/1 "2018-04-22T13:57:09Z")

</div>

Hi,

I want my front page with the categories on the left and new items on the right:

 ![](https://global.discourse-cdn.com/meta/original/3X/2/9/292564b0e7c1e080c1fce15b8a5a0d4f828af6cd.png)

I’ve set the option “desktop category page style” to “Categories **and** Latest Topics”, in `/admin/site_settings/category/all_results?filter=desktop%20category%20page%20style`

and my top menu to be Categories | Latest | New | Top | Unread in `/admin/site_settings/category/all_results?filter=top%20menu`

But now my global pinned banner doesn’t show in the front page, only if I click on an item like ‘Latest’ or ‘New’

 ![ok](https://global.discourse-cdn.com/meta/original/3X/a/4/a48198b36ea63d5b098631c92ede27a117d793e7.png)

 ![nok](https://global.discourse-cdn.com/meta/original/3X/7/d/7d3d236a7c0491011d1d4cb6d1191bbb34dcaeff.png)

Thanks! 🙂

---

<div class="post-metadata">

**Author:** ![dax](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dax/32/244677_2.png) [@dax](https://meta.discourse.org/u/dax)\
**Post date:** [2018年四月22日 14:31 UTC](https://meta.discourse.org/t/pinned-banner-doesnt-show-in-front-page-if-categories-is-the-first-item-in-top-menu/85906/2 "2018-04-22T14:31:48Z")

</div>

> [@joshm](#):
>
> and my top menu to be Categories | Latest | New | Top | Unread in /admin/site\_settings/category/all\_results?filter=top%20menu

It seems to me that this method has been deprecated for a few months, perhaps even more than a few months…  
You should re-run the `/wizard` instead of use that method.

* * *

BTW, the only reason for this behaviour is that you already read the pinned topic and in your profile the setting `Automatically unpin topics when I reach the bottom` is active.

In my case I deactivated that voice a long time ago and if I change my home page from Latest to Categories I can see our pinned topic as always

 ![firefox_2018-04-22_16-18-51](https://global.discourse-cdn.com/meta/original/3X/a/d/ad685ed5e18c1ff4c4b74638d60dc2ed8268e947.png)

---

<div class="post-metadata">

**Author:** ![joshm](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/joshm/32/135134_2.png) [@joshm](https://meta.discourse.org/u/joshm)\
**Post date:** [2018年四月23日 01:24 UTC](https://meta.discourse.org/t/pinned-banner-doesnt-show-in-front-page-if-categories-is-the-first-item-in-top-menu/85906/3 "2018-04-23T01:24:20Z")

</div>

Thanks Daniela. Maybe I wasn’t clear enough 🧐. I mean a banner like this one:

 ![banner](https://global.discourse-cdn.com/meta/original/3X/d/e/de5462b3e07c9d45113e654fc0b5bf12960c9e90.png)

I have a very similar banner on my site. But the banner doesn’t show on /categories, if I set the option `“desktop category page style”` to `Categories and Latest Topics`.

---

<div class="post-metadata">

**Author:** ![dax](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dax/32/244677_2.png) [@dax](https://meta.discourse.org/u/dax)\
**Post date:** [2018年四月23日 07:32 UTC](https://meta.discourse.org/t/pinned-banner-doesnt-show-in-front-page-if-categories-is-the-first-item-in-top-menu/85906/4 "2018-04-23T07:32:52Z")

</div>

That is not a pinned banner, but a separate theme. The settings you’re looking at have nothing to do with it, if the banner does not appear on the category page it does so because you’re telling it not to do it with CSS.

How did you add that banner to your site?

Check the banner CSS, you should find a similar line:

```plaintext
.navigation-categories .class-of-your-banner {
        display: none;
    }

```

---

<div class="post-metadata">

**Author:** ![joshm](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/joshm/32/135134_2.png) [@joshm](https://meta.discourse.org/u/joshm)\
**Post date:** [2018年四月23日 18:02 UTC](https://meta.discourse.org/t/pinned-banner-doesnt-show-in-front-page-if-categories-is-the-first-item-in-top-menu/85906/5 "2018-04-23T18:02:58Z")

</div>

Thanks, I’m an idiot.

I had this:

```
body[class*="categories-list"] #banner {
 display: none;
 }

```

---

<div class="post-metadata">

**Author:** ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)\
**Post date:** [2018年四月24日 22:00 UTC](https://meta.discourse.org/t/pinned-banner-doesnt-show-in-front-page-if-categories-is-the-first-item-in-top-menu/85906/6 "2018-04-24T22:00:03Z")

</div>

This topic was automatically closed after 24 hours. New replies are no longer allowed.
