Get 2024 Templates Mega Bundle!$1000 worth of 19 Bootstrap HTML, Vue & React Templates + 3 Vector Sets for just $99
Get for 99$

Not able to get rid of space after removing Toolbar


I'm using Metronic 8- Demo 6 React version. I don't require the toolbar anymore so I got rid of it. But when I'm doing so, I'm getting an extra space there. How to get rid of that extra space?

This is a part of the MaterLayout code.

,

<div className="d-flex flex-column flex-root">
{/* begin::Page */}
<div className="page d-flex flex-row flex-column-fluid">
<AsideDefault />
{/* begin::Wrapper */}
<div className="wrapper d-flex flex-column flex-row-fluid" id="kt_wrapper">
<HeaderWrapper />
{/* <Toolbar /> */}

{/* begin::Content */}
<div id="kt_content" className="content d-flex flex-column flex-column-fluid">
<Content>
<Outlet />
</Content>
</div>


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (3)


Hi,

Thank you for reaching out to us.

To remove the toolbar space, you need to remove the toolbar-enabled toolbar-fixed classes from the body tag. These classes are added in src/_metronic/layout/core/LayoutSetup.ts with LayoutSetup.initToolbar(config.toolbar);, if you still want to use the toolbar on some pages you can simply set toolbar.display to false in src/_metronic/layout/core/DefaultLayoutConfig.ts.

Regards,
Lauris Stepanovs,
Keenthemes Support Team



It worked, thanks.



Hi,

Glad to hear that. Let me know if you have any further questions on this topic or anything else.

Regards,
Lauris Stepanovs,
Keenthemes Support Team


Your Support Matters!

We will highly appreciate your Metronic Review on Themeforest.
Please go to Themeforest Downloads page, select Metronic & leave your feedback.
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(