# 在头部添加一个注册按钮（Memberful购买链接），登录后隐藏

**URL:** <https://meta.discourse.org/t/add-a-sign-up-button-memberful-purchase-link-in-header-and-disappear-when-log-in/81537>\
**Category:** Support\
**Created:** [2018年二月26日 13:10 UTC](https://meta.discourse.org/t/add-a-sign-up-button-memberful-purchase-link-in-header-and-disappear-when-log-in/81537 "2018-02-26T13:10:38Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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年二月26日 13:50 UTC](https://meta.discourse.org/t/add-a-sign-up-button-memberful-purchase-link-in-header-and-disappear-when-log-in/81537/2 "2018-02-26T13:50:56Z")

</div>

Just make it appear only to users not logged in using the `.anon` class, take a look here as example [Banner Topic on home page and only for anonymous users](https://meta.discourse.org/t/banner-topic-on-home-page-and-only-for-anonymous-users/80959)

---

_[View the full topic](https://meta.discourse.org/t/add-a-sign-up-button-memberful-purchase-link-in-header-and-disappear-when-log-in/81537)._
