Discourse Mobile Auth Button

:information_source: Summary Replaces the mobile Log In button with a combined Sign Up / Log In button
:hammer_and_wrench: Repository https://github.com/Lillinator/discourse-mobile-auth-button
:question: Install Guide How to install a theme or theme component

Install this theme component

:woman_technologist:t2: Overview

In the default mobile view, the Sign Up button is hidden and the existing Log In button can be confusing for new visitors to Discourse forums (anonymous view).

This simple Discourse theme component replaces the existing Log In button in mobile view with a combined button with clearer labeling - the default is Sign Up / Log In. The button still links to the same log in page with the sign up link.


:gear: Settings

hide_login_button_icon - hides the icon on the combined button for more header space

mobile_auth_button - customizable button text string for theme translations


:camera_flash: More screenshots

With hide_login_button_icon enabled

Changed mobile_auth_button label


:bulb: Notes

  • This component is compatible with the Left side hamburger menu on mobile but centring the site logo may cause crowding issues in the header.
  • Todo - turn it into a dropdown with 2 buttons.
1 Like