The Homepage Toggle theme component, created by Joseph_Hansen, allows users to switch between two homepages with a toggle button in the header. It automatically uses the primary and tertiary colors from the theme and can be customized with icons and URLs. The component was originally designed for an art forum and has been tested on multiple browsers. However, some users have reported errors, such as frold and denvergeeks, when installing the component.
Others have pointed out alternative methods to achieve a similar result, like using the gallery view in the theme, as mentioned by twofoursixeight. Jagster noted that icons must be added to the admin setting “svg icon subset” for the component to work properly.
Unfortunately, the component is currently marked as broken, as david explained that modifying the header using decorateWidget has been deprecated and is no longer possible.
This Discourse theme component adds a toggleable homepage in the header, allowing users to jump between two pages that can be set in the theme component settings.
It uses the primary and tertiary colors from your theme automatically.
You can set the icons (and URLs) for each side of the toggle in the theme component settings.
This was created for an art forum to toggle between an art-focused homepage gallery and a more traditional forum view. The default icons (a gallery and a list) reflect this by default but they are customizable.
Tested on Firefox, Chrome, Safari, and Edge- no issues found. For desktop only- future updates may include a mobile version as well