# Help! with the Anonymous feature on discourse

**URL:** https://meta.discourse.org/t/help-with-the-anonymous-feature-on-discourse/70135
**Category:** Development
**Created:** [September 15, 2017, 4:08pm UTC](https://meta.discourse.org/t/help-with-the-anonymous-feature-on-discourse/70135 "2017-09-15T16:08:16Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![ogeh47](https://avatars.discourse-cdn.com/v4/letter/o/e56c9b/32.png) [@ogeh47](https://meta.discourse.org/u/ogeh47)
#### Post date: [September 15, 2017, 4:08pm UTC](https://meta.discourse.org/t/help-with-the-anonymous-feature-on-discourse/70135/1 "2017-09-15T16:08:16Z")

</div>

Hello, everyone, I am new to the discourse platform and I’m currently building a bottom bar navigation that will only be displayed on mobile phones and I cannot seem to get the anonymous feature to work, I want to make an icon on my bottom bar function like the anonymous icon on discourse. I cannot seem to figure this out.

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [September 15, 2017, 4:21pm UTC](https://meta.discourse.org/t/help-with-the-anonymous-feature-on-discourse/70135/2 "2017-09-15T16:21:21Z")

</div>

This is the code that runs in the user menu to switch to an anonymous account

> <https://github.com/discourse/discourse/blob/a48abc6556bcdaec07f9f32e117abfd6799bd2f1/app/assets/javascripts/discourse/routes/application.js.es6#L28-L30>

You need to replicate that code when the anonymous button is clicked. How you do that will depend how you’ve implemented the bottom bar.

---

<div class="post-metadata">

### Author: ![ogeh47](https://avatars.discourse-cdn.com/v4/letter/o/e56c9b/32.png) [@ogeh47](https://meta.discourse.org/u/ogeh47)
#### Post date: [March 9, 2018, 5:29am UTC](https://meta.discourse.org/t/help-with-the-anonymous-feature-on-discourse/70135/3 "2018-03-09T05:29:24Z")

</div>

> [@david](#):
>
> ajax(userPath(“toggle-anon”), {method: ‘POST’}).then(() =\> {  
> window.location.reload();  
> });

Hi, @david I am trying to implement it as a button on mobile, here is what my HTML code looks like;

```
    <ul class="bottom_nav_menu">
            <li class="ze_menu_bottom">
                <a class="toggle-anon enable-anonymous" alt="Go Anonymous">
                    <i class="material-icons">&#xE8F5;</i><span class="text"> Go Anonymous </span>
                </a>
            </li>
        </ul>

```
