Force Mobile Homepage

:information_source: Summary Force a different homepage for users visiting the site from a small viewport (e.g. mobile)
:eyeglasses: Preview Theme Creator
:hammer_and_wrench: Repository GitHub - tshenry/discourse-force-mobile-homepage · GitHub
:question: Install Guide How to install a theme or theme component
:open_book: New to Discourse Themes? Beginner’s guide to using Discourse Themes

Install this theme component

Currently the default homepage settings found in the admin panel and user preferences apply to both desktop and mobile. This is a very simple theme component that will allow you to specify a different default homepage for the small viewport version of your Discourse forum.

It is important to note that this will force anyone using a small viewport to navigate to the homepage you choose with this theme component. Your users will not be able to override the default homepage for the small viewport context via their user preferences at this point.

Theme Settings

There is one setting that will allow you to set the alternative homepage to one of the following:

  • latest (default)
  • new
  • top
  • categories
  • hot

Potential future work ideas

  • Allow users to override the default set via this component.
57 likes