Super Sale Limited Time 50% OFF for All-Access Plans
Save 50% Now

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


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(

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



Thank you as always.
Have a nice day
Krystian


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(