# Combined Auth Button

**URL:** https://meta.discourse.org/t/combined-auth-button/401215
**Category:** Theme component
**Tags:** login, signup
**Created:** [April 22, 2026, 7:58am UTC](https://meta.discourse.org/t/combined-auth-button/401215 "2026-04-22T07:58:10Z")
**Posts on this page:** 5
**Page:** 1

<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: [April 22, 2026, 7:58am UTC](https://meta.discourse.org/t/combined-auth-button/401215/1 "2026-04-22T07:58:11Z")

</div>

| | | |
| --- | --- | --- |
| ℹ | **Summary** | Replaces the default auth buttons with a combined button that opens a dropdown or modal with links |
| 🛠 | **Repository** | [https://github.com/Lillinator/combined-auth-button](https://github.com/Lillinator/combined-auth-button) |
| ❓ | **Install Guide** | [How to install a theme or theme component](https://meta.discourse.org/t/how-do-i-install-a-theme-or-theme-component/63682) |

Install this theme component

### 👩🏻‍💻 Overview

This theme component combines the sign up and login buttons into one button with drop down options, for a cleaner header space and improved user experience (especially for mobile users).

In particular, the default Discourse mobile forum view hides the Sign Up button and just shows the existing Log In button; this can be confusing and non-intuitive for new visitors to Discourse forums (anonymous view). Moreover, the default mobile view log in button links to the log in page that in turn, has a link to the sign up page; this creates unnecessary friction for new users on mobile devices.

Default mobile view without component:

 ![F912A0E2-ABD0-4443-98EE-52E80E459A17_4_5005_c](https://global.discourse-cdn.com/meta/original/4X/6/3/a/63a107ff2b0159197fd3723c954a48688903305a.jpeg)

This simple Discourse theme component replaces the existing `Log In` button with a combined button with clearer labeling - the default is `Sign Up / Log In`. When clicked or tapped, it opens a dropdown menu or mobile modal with links to the respective sign up or log in pages.

Mobile button and modal with component default settings:

 ![image](https://global.discourse-cdn.com/meta/original/4X/5/4/b/54bf97806c519ccb785304132e106afc146c986c.jpeg)

 ![IMG_5175](https://global.discourse-cdn.com/meta/original/4X/8/e/2/8e2c02d930ab686b01fc69e9b17b176bd04941c2.jpeg)

Desktop button and dropdown menu with component default settings:

 ![image](https://global.discourse-cdn.com/meta/original/4X/f/1/0/f10ad6d1aeb2f0c5bfedbaef8f400d5422132e61.jpeg)

* * *

### ⚙ Settings & theme translations

There are admin settings that allow for enabling on desktop, hiding the combined button icon for more header space in mobile view, as well as for changing all the button icons and labels.

| Setting | Description |
| --- | --- |
| `enable_on_desktop` | Enable the combined auth button on all viewports sizes |
| `hide_mobile_combined_button_icon` | hides the combined auth button icon in mobile view to save header space |
| `combined_button_icon` | SVG icon for the combined auth dropdown button |
| `login_button_icon` | SVG icon for Log In button |
| `signup_button_icon` | SVG icon for the Sign Up button |
| `button_labels.auth` | combined button text string for theme translations |
| `button_labels.log_in` | log in button text string for theme translations |
| `button_labels.sign_up` | sign up button text string for theme translations |

* * *

### 📸 More screenshots

> **Settings page**
>
> ![image](https://global.discourse-cdn.com/meta/original/4X/2/5/4/254d669e39ebcd0d86c1f31bdedac9dc10db24c0.png)

> **With hide\_mobile\_ combined\_button\_icon enabled**
>
> ![image](https://global.discourse-cdn.com/meta/original/4X/7/3/b/73b3d2f26318bec8b4cea1fc64519731fb81812f.jpeg)

> **Changed button labels and icons**
>
> Mobile:
> 
> ![image](https://global.discourse-cdn.com/meta/original/4X/0/8/4/0847660a027a3bde487aa2d1da1ff71c9a7c9951.png)
> 
> Desktop:
> 
> ![image](https://global.discourse-cdn.com/meta/original/4X/d/6/4/d64b859f322010bfb81e5b4eea4afdce0fdf5199.jpeg)

> **Customize to your forum for fun**
>
> ![image](https://global.discourse-cdn.com/meta/original/4X/9/a/2/9a2a6c3c2188f37964586ede26e9cbf9716b25a8.jpeg)

* * *

### 💡 Notes

- This component is compatible with the [Left side hamburger menu on mobile](https://meta.discourse.org/t/left-side-hamburger-menu-on-mobile/164513) but centring the site logo may cause crowding issues in the header.

* * *
 **[Check out my other Discourse stuff](https://meta.discourse.org/filter?q=category%3Acustomization%20created-by%3ALilly%20order%3Acreated)**

---

<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: [April 22, 2026, 5:49pm UTC](https://meta.discourse.org/t/combined-auth-button/401215/2 "2026-04-22T17:49:09Z")

</div>

i just pushed an update to this that improves the experience by opening a mobile modal that links to either the sign up or login pages. updated the OP as well. thanks to @Moin for the idea! 😃

> **screenshots**
>
> default component modal buttons:
> 
> ![IMG5175](https://global.discourse-cdn.com/meta/original/4X/8/e/2/8e2c02d930ab686b01fc69e9b17b176bd04941c2.jpeg)
> 
> changeable button labels:
> 
> ![IMG5176](https://global.discourse-cdn.com/meta/original/4X/8/d/a/8da716f2718f1f7ba7b215af7a1544482d651043.jpeg)

---

<div class="post-metadata">

### Author: ![eisammy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eisammy/32/528804_2.png) [@eisammy](https://meta.discourse.org/u/eisammy)
#### Post date: [April 22, 2026, 8:33pm UTC](https://meta.discourse.org/t/combined-auth-button/401215/3 "2026-04-22T20:33:05Z")

</div>

Thank you very much @Lilly, I will test it soon.

---

<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: [April 23, 2026, 5:34pm UTC](https://meta.discourse.org/t/combined-auth-button/401215/4 "2026-04-23T17:34:15Z")

</div>

ok i have made some changes to this component again - one can now enable it on desktop and change all the labels and icons.

 ![Screenshot 2026-04-23 at 2.03.01 PM](https://global.discourse-cdn.com/meta/original/4X/6/2/7/6270fccfaab4a792cd86047462250e06a3f5df63.jpeg)

the component repo has also been renamed. it will continued to work if you have it installed, but you should change the source (or re-install it) at some point to avoid potential future repo source issues.

---

<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 15, 2026, 7:10pm UTC](https://meta.discourse.org/t/combined-auth-button/401215/5 "2026-05-15T19:10:57Z")

</div>

i pushed a bit of a fix for this component today - the button was rendering inside the header title in scrolled topics when using the [left side hamburger component](https://meta.discourse.org/t/left-side-hamburger-menu-on-mobile/164513). the components are now fully compatible with each other.
