Sidebar minimise

Hello within my Laravel App using metronic i can collapse the main sidebar nav and this will collapse okay. When I move to another page or this page is reloaded the navbar defaults back to the maximised display. Could you tell me why this is happening or how to resolve the issue? I would like the navbar to stay minimised when scrolling through the pages If i have set the navbar to minimise.

Text formatting options
Submit

Replies (1)

Hi

You can set the sidebar minimized by default.

  • Add data-kt-app-sidebar-minimize="on" attribute on the body element.
  • Add active class on the toggle element (id=kt_app_sidebar_toggle).
  • Set data-kt-toggle-state="active" attribute on the toggle element (id=kt_app_sidebar_toggle).
  • Thanks

    Text formatting options
    Submit
    Text formatting options
    Submit