The Optional Mobile Title Header is an official Discourse theme component that allows users and site administrators to toggle whether the mobile header switches to the topic title upon scrolling. When enabled, the standard header remains visible; when disabled, the header collapses to the title on scroll. The component includes a user preference setting (persisted per device in local storage) and an admin setting to control the default state.
During the discussion, several issues and clarifications were raised:
Installation and Activation: seanblue and viethoang discussed the component’s availability on hosted Discourse instances. jomaxro clarified that there are no restrictions, but viethoang discovered that the component must be added to an active theme to function, not just installed.
Visibility and Bugs: dylanh724 reported that the user preference option was missing. david explained that the setting is only visible on mobile devices, as the component has no effect on desktop. After david fixed an issue requiring manual page reloads, dylanh724 confirmed the admin setting was found but the user setting remained elusive for some accounts. david reiterated that the toggle is strictly for mobile views.
Technical Fixes: sam suspected recent core changes broke the functionality. pmusaraj confirmed a fix for compatibility with the latest core. Additionally, Jagster noted a warning about deprecated code, which david addressed via a pull request.
Current caveats include the need for a site reload after changing settings (though this was recently improved) and the fact that the setting is not yet fully localized.
Do hosted discourse instances have the option to install this component? I sent this to the admin of the site I use, but he’s having trouble getting the setting to show up for users.
To follow-up on @seanblue. The theme component installs without issue. I can see the component on the Theme list in Admin. We aren’t seeing the User > Preference > Interface option as seen in the quote.
Yep, that is located in the themes area. Find the page for the component, and then find the “theme settings” section at the bottom of the page. There’s a screenshot of it in the OP:
I can’t see it all – I wonder if this only works for new accounts? There’s a friend helping me test and he can’t see the option, either. I’m testing desktop, he’s testing mobile.
You keep saying this as if the option doesn’t show on desktop – or is this intended that you can only selection this OPTION when on mobile (rather than the event happening only on mobile, which I understand)?