Metronic 8 Bootstrap 5 light-sidebar header fixed not working
Hi Teams,
I noticed that when layout is set as light-sidebar the configuration
header: {
display: true,
default: {
container: "fluid",
fixed: {
desktop: true,
mobile: true,
},
menu: {
display: true,
iconType: "keenthemes",
},
},
}, is not working. Only dark-sidebar has fixed header. Can you give me a tip where to fix it?
Krystian
Replies (2)
Hi Krystian,
Sorry for the late reply.
By default, we override fixed properties for light sidebar layout. To make the header fixed on light sidebar layout you should remove the following code from src/core/services/LayoutService.ts.
if (layout === "light-sidebar") {
this.configStore.setLayoutConfigProperty(
"header.default.fixed.desktop",
false,
);
this.configStore.setLayoutConfigProperty(
"header.default.fixed.mobile",
false,
);
} Regards,
Lauris Stepanovs,
Keenthemes Support Team