halfmoonui / halfmoon

Halfmoon is a highly customizable, drop-in Bootstrap replacement. It comes with three built-in core themes, with dark mode support for all themes and components.
https://www.gethalfmoon.com
MIT License
3.03k stars 118 forks source link

Default Sidebar setting #93

Closed begrafx closed 3 years ago

begrafx commented 3 years ago

Starting with the code from gethalfmoon.com, I've put my page together. However, I find that every time I refresh the page, the sidebar returns to the "open" position. I may be missing it, but I've gone through the documentation on the site, as well as the code of my own page, and I am not able to find anything. How do I change the (apparently default) setting for the sidebar, so that it opens in the "closed" position?

richardoey commented 3 years ago

Do you mean, you want it to be hidden as default? Based on the docs here, add the data-sidebar-hidden="hidden" property inside the div wrapper. So, it should be like this

<div class="page-wrapper with-navbar with-sidebar with-transitions" data-sidebar-hidden="hidden">

begrafx commented 3 years ago

Thank you. Somehow I must have looked right overtop of that. Thank you for your help.