How to change the default sidebar mode
· One min read
If you are in a desktop device, you can go to your settings and activate a switch for Always hide the sidebar
, so you will have the sidebar automatically hidden as in a mobile device. But if you are in a small-screen device, there is no Always show the sidebar
option.
Custom Sidebar has an option that will allow you to manage the default sidebar mode per user or device basis.
info
If you se this option, the changes made in the Always hide the sidebar
section in your profile will be ignored.
sidebar_mode
This option has three possible values and they will ignore the device screen size:
Option Value | Description |
---|---|
hidden | The sidebar will be hidden by default as in a mobile device |
narrow | The sidebar will be in a narrow state by default |
extended | The sidebar will be in an extended state by default |
- YAML
- JSON
<config directory>/www/sidebar-config.yaml
sidebar_mode: 'narrow'
order:
...
<config directory>/www/sidebar-config.json
{
"sidebar_mode": "narrow",
"order": [
...
]
}
sidebar_mode
in narrow