Reply To: Style switcher panel customisation

#10034782
Support
Keymaster

Hello Adel,

Thanks!

You need check the value of “sidebarCollapse” cookie/localStore and add the active class on respective button:

....
.....
...........
switch (d.find(".active").removeClass("active"), d.find("a[data-sidebar-collapse=" + a + "]").addClass("active"), c.removeClass("sidebar-left-collapsed"), a) {
	case "open":
		c.addClass("");
		d.find('[data-sidebar-collapse="open"]').addClass("active");
		break;
		
	case "closed":
		c.addClass("sidebar-left-collapsed")
		d.find('[data-sidebar-collapse="close"]').addClass("active");
}
....
.......
....

Make sure to run this code above on first load of page.

Hope this helps!

Please try that and let us know if you need further assistance.

Kind Regards,

Rodrigo.


If you are satisfied with Porto Admin and our support, please leave your comment and rating on ThemeForest downloads page. That helps us a lot: https://themeforest.net/downloads