Introducing ReUI:Open-source UI components and apps built with React, Next.js and Tailwind CSS
Browse ReUI

Avoid missing logo disabling sidebar -Demo1-Html


Hi.
I need to disable sidebar (menu) for one of my pages. I set data-kt-app-sidebar-enabled parameter to false and deleted all the other parameters related to sidebar on body tag.

<img src="https://i.imgur.com/0U4ZAyJ.png" />

Also I deleted the div with id kt_app_sidebar and the mobile sidebar toggle. This works well on mobile, but on desktop I missed the logo as you can see:

<img src="https://i.imgur.com/UcjKnpU.png" />

Is there a parameter to preserve the logo on desktop disabling the sidebar menu?

As always, thanks in advance happy


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 (2)


Thanks for the tip! I was struggling with the sidebar issue on demo1.html and couldn't figure out why the logo was disappearing. Your explanation about the layout behavior really helped.

By the way, for anyone working on customizing dashboards or just looking for some clean, high-res backgrounds, check out FondosPantallaHD.com - I found some great wallpapers there that make my dev setup look awesome!



Hi,

Please refer to Sidebar Disabled Layout example and add the required code for the logo in the header.

Regards.


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  :(