Hello,
i'm using Metronic Demo50, in this demo there is two sidebars (Primary and Secondary),
and there's toggle button to toggle secondary sidebar (open and close),
the default secondary sidebar is open so, i need to change the default to be collapsed when open the website like,
Thank's
data-kt-app-sidebar-secondary-collapse
how to make on/off based on user previous selection.
if user has closed then keep close on every page load.
if user has open then keep open on every page load.
Thanks
Hi,
To collapse the secondary sidebar by default just add data-kt-app-sidebar-secondary-collapse="on"
attribute to the body element and active
class to the toggle element with id kt_app_sidebar_secondary_toggle
.
Please give it a try and let us know the result.
Regards.
yes it's working thank's for help
Great! If you need any further help please do let us know