# 首页横幅主题，仅限匿名用户

**URL:** https://meta.discourse.org/t/banner-topic-on-home-page-and-only-for-anonymous-users/80959
**Category:** Support
**Created:** [2018年二月19日 19:11 UTC](https://meta.discourse.org/t/banner-topic-on-home-page-and-only-for-anonymous-users/80959 "2018-02-19T19:11:20Z")
**Posts on this page:** 1
**Showing post:** 3

<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: [2018年二月20日 18:33 UTC](https://meta.discourse.org/t/banner-topic-on-home-page-and-only-for-anonymous-users/80959/3 "2018-02-20T18:33:57Z")

</div>

Does the Banner Topic accomplish what you’re looking for?

> [@New "Banner Topic" pin type](https://meta.discourse.org/t/new-banner-topic-pin-type/16458?source_topic_id=19353):
>
> One thing we’ve noticed is Discourse sites putting welcome banners up, like this: Technically this site welcome function is covered by the pinned welcome topic [image] But clearly we need something a bit more.. obvious.. for new users, as this is a recurring user-created design element on multiple Discourse sites. We also noted [in a random usability test](http://peek.usertesting.com/result/613760977075?autoplay=true) that a new arriving user indeed never found or read the pinned topic, at all. warning We proposing adding a new type of topic…

The banner shows for all users — but once a logged in user dismisses it then it’s gone forever; anon users can dismiss it (but the dismissed state is only saved locally on their device).

Additionally, you can target anon users using CSS (we add the class `.anon` to the HTML tag).

There are also some CSS classes to target either the topic-list pages (`body.navigation-topics`) or category pages (`body.navigation-categories`).

---

_[View the full topic](https://meta.discourse.org/t/banner-topic-on-home-page-and-only-for-anonymous-users/80959)._
