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

HTML Version, Demo 29, Sidebar Issue


Good Morning!

The site I am working on needs to sometimes only show a primary sidebar and in other cases a primary and a secondary (fairly standard use case). I am struggling to show a version of the site *without* a secondary sidebar.

To ensure it wasn't something I've done, I went to your site and generated an HTML file from your layout generator that does not contain a sidebar, and then using your partials I reconstructed a minimum view by adding in only the _default.html and _sidebar.html into the index.html. Even having only taken only those basic steps, the region for the secondary sidebar still shows on the screen and still takes up horizontal space. I have, as of yet, been unable to figure out how to fully remove it from the view.

Any help is greatly appreciate--it is likely something simple I'm missing, but starting to pull my hair out.

Thanks!
shocked


<!DOCTYPE html>
<!--
Author: Keenthemes
Product Name: Metronic - Bootstrap 5 HTML, VueJS, React, Angular. Laravel, Asp.Net Core, Ruby on Rails, Spring Boot, Blazor, Django, Express.js, Node.js, Flask Admin Dashboard Theme & Template
Product Version: 8.1.6
Purchase: https://1.envato.market/EA4JP
Website: http://www.keenthemes.com
Contact: support@keenthemes.com
Follow: www.twitter.com/keenthemes
Dribbble: www.dribbble.com/keenthemes
Like: www.facebook.com/keenthemes
License: For each use you must have a valid license purchased only from above link in order to legally use the theme for your project.
-->
<html lang="en">
<!--begin::Head-->
<head>
<base href="" />
<title>Metronic - the world"s #1 selling Bootstrap Admin Theme Ecosystem for HTML, VueJS, React, Angular. Laravel, Asp.Net Core, Ruby on Rails, Spring Boot, Blazor, Django, Express.js, Node.js & Flask by Keenthemes</title>
<meta charset="utf-8" />
<meta name="description" content="The most advanced Bootstrap Admin Theme on Themeforest trusted by 100,000 beginners and professionals. Multi-demo, Dark Mode, RTL support and complete React, Angular, Vue, Asp.Net Core, Rails, Spring, Blazor, Django, Express.js, Node.js, Flask & Laravel versions. Grab your copy now and get life-time updates for free." />
<meta name="keywords" content="metronic, bootstrap, bootstrap 5, angular, VueJs, React, Asp.Net Core, Rails, Spring, Blazor, Django, Express.js, Node.js, Flask & Laravel starter kits, admin themes, web design, figma, web development, free templates, free admin themes, bootstrap theme, bootstrap template, bootstrap dashboard, bootstrap dak mode, bootstrap button, bootstrap datepicker, bootstrap timepicker, fullcalendar, datatables, flaticon" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta property="og:locale" content="en_US" />
<meta property="og:type" content="article" />
<meta property="og:title" content="Metronic - Bootstrap 5 HTML, VueJS, React, Angular. Laravel, Asp.Net Core, Ruby on Rails, Spring Boot, Blazor, Django, Express.js, Node.js, Flask Admin Dashboard Theme & Template" />
<meta property="og:url" content="https://keenthemes.com/metronic" />
<meta property="og:site_name" content="Keenthemes | Metronic" />
<link rel="canonical" href="https://preview.keenthemes.com/metronic8" />
<link rel="shortcut icon" href="/media/logos/favicon.ico" />
<!--begin::Fonts(mandatory for all pages)-->
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Inter:300,400,500,600,700" />
<!--end::Fonts-->
<!--begin::Vendor Stylesheets(used for this page only)-->
<link href="/plugins/custom/fullcalendar/fullcalendar.bundle.css" rel="stylesheet" type="text/css" />
<link href="/plugins/custom/datatables/datatables.bundle.css" rel="stylesheet" type="text/css" />
<!--end::Vendor Stylesheets-->
<!--begin::Global Stylesheets Bundle(mandatory for all pages)-->
<link href="/plugins/global/plugins.bundle.css" rel="stylesheet" type="text/css" />
<link href="/css/style.bundle.css" rel="stylesheet" type="text/css" />
<!--end::Global Stylesheets Bundle-->
</head>
<!--end::Head-->
<!--begin::Body-->
<body id="kt_app_body" data-kt-app-header-fixed-mobile="true" data-kt-app-sidebar-enabled="true" data-kt-app-sidebar-fixed="true" data-kt-app-sidebar-push-header="true" data-kt-app-sidebar-push-toolbar="true" data-kt-app-sidebar-push-footer="true" data-kt-app-sidebar-stacked="true" data-kt-app-toolbar-enabled="true" class="app-default">
<!--layout-partial:partials/theme-mode/_init.html-->
<!--begin::App-->
<div class="d-flex flex-column flex-root app-root" id="kt_app_root">
<!--begin::Page-->
<div class="app-page flex-column flex-column-fluid" id="kt_app_page">
<!--layout-partial:layout/partials/_header.html-->
<!--begin::Wrapper-->
<div class="app-wrapper flex-column flex-row-fluid" id="kt_app_wrapper">
<!--begin::Sidebar-->
<div id="kt_app_sidebar" class="app-sidebar" data-kt-drawer="true" data-kt-drawer-name="app-sidebar" data-kt-drawer-activate="{default: true, lg: false}" data-kt-drawer-overlay="true" data-kt-drawer-width="auto" data-kt-drawer-direction="start" data-kt-drawer-toggle="#kt_app_sidebar_mobile_toggle">
<!--begin::Sidebar primary-->
<div class="app-sidebar-primary">
<!--layout-partial:layout/partials/sidebar/_primary-logo.html-->
<!--layout-partial:layout/partials/sidebar/_primary-menu.html-->
<!--layout-partial:layout/partials/sidebar/_primary-footer.html-->
</div>
<!--end::Sidebar primary-->
</div>
<!--end::Sidebar-->

<!--begin::Main-->
<div class="app-main flex-column flex-row-fluid" id="kt_app_main">
<!--begin::Content wrapper-->
<div class="d-flex flex-column flex-column-fluid">
<!--layout-partial:layout/partials/_toolbar.html-->
<!--layout-partial:layout/partials/_content.html-->
</div>
<!--end::Content wrapper-->
<!--layout-partial:layout/partials/_footer.html-->
</div>
<!--end:::Main-->
</div>
<!--end::Wrapper-->
</div>
<!--end::Page-->
</div>
<!--end::App-->
<!--layout-partial:partials/_drawers.html-->

<!--layout-partial:partials/_scrolltop.html-->
<!--begin::Modals-->
<!--layout-partial:partials/modals/create-campaign/_main.html-->
<!--layout-partial:partials/modals/_bidding.html-->
<!--layout-partial:partials/modals/_view-users.html-->
<!--layout-partial:partials/modals/users-search/_main.html-->
<!--layout-partial:partials/modals/_invite-friends.html-->
<!--end::Modals-->
<!--begin::Javascript-->
<script>
var hostUrl = "/";

</script>
<!--begin::Global Javascript Bundle(mandatory for all pages)-->
<script src="/plugins/global/plugins.bundle.js"></script>
<script src="/js/scripts.bundle.js"></script>
<!--end::Global Javascript Bundle-->
<!--begin::Vendors Javascript(used for this page only)-->
<script src="/plugins/custom/fullcalendar/fullcalendar.bundle.js"></script>
<script src="https://cdn.amcharts.com/lib/5/index.js"></script>
<script src="https://cdn.amcharts.com/lib/5/xy.js"></script>
<script src="https://cdn.amcharts.com/lib/5/percent.js"></script>
<script src="https://cdn.amcharts.com/lib/5/radar.js"></script>
<script src="https://cdn.amcharts.com/lib/5/themes/Animated.js"></script>
<script src="https://cdn.amcharts.com/lib/5/map.js"></script>
<script src="https://cdn.amcharts.com/lib/5/geodata/worldLow.js"></script>
<script src="https://cdn.amcharts.com/lib/5/geodata/continentsLow.js"></script>
<script src="https://cdn.amcharts.com/lib/5/geodata/usaLow.js"></script>
<script src="https://cdn.amcharts.com/lib/5/geodata/worldTimeZonesLow.js"></script>
<script src="https://cdn.amcharts.com/lib/5/geodata/worldTimeZoneAreasLow.js"></script>
<script src="/plugins/custom/datatables/datatables.bundle.js"></script>
<!--end::Vendors Javascript-->
<!--begin::Custom Javascript(used for this page only)-->
<script src="/js/widgets.bundle.js"></script>
<script src="/js/custom/widgets.js"></script>
<script src="/js/custom/apps/chat/chat.js"></script>
<script src="/js/custom/utilities/modals/create-campaign.js"></script>
<script src="/js/custom/utilities/modals/bidding.js"></script>
<script src="/js/custom/utilities/modals/users-search.js"></script>
<!--end::Custom Javascript-->
<!--end::Javascript-->
</body>
<!--end::Body-->
</html>


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


HTML Version Demo 29 has a persistent sidebar issue causing layout misalignment on certain screen sizes. Developers are troubleshooting inconsistencies in responsive behavior across browsers. This mirrors challenges faced in tracing the florian tardif origine parents query due to fragmented data sources.



Thousands of players around the world use fisch macro mobile , a well-liked Roblox tool, to enhance their gaming.

One of the greatest resources for Roblox that enhances gameplay is krnl executor . It enables you to utilize unique scripts to enhance your gameplay and benefit from game features.



Blox Fruits Codes provide players with free XP boosts, in-game cash, and other rewards to level up faster. These codes are regularly released by developers and can be redeemed for useful bonuses. Stay updated with the latest codes to maximize your adventure on the seas.

Bloxstrap is an excellent open-source tool that enhances the Roblox experience by allowing users to customize the game's appearance and add exciting new features. Designed specifically for Windows PCs, it offers a seamless, user-friendly, and secure way to personalize Roblox. With its free accessibility and open-source nature, Bloxstrap empowers players to take full control of their gameplay while ensuring a smooth and safe experience.
Read More



1. Check the CSS Rules
The layout might use CSS grid or flexbox, and even if the secondary sidebar is empty, its space might still be allocated. Look for CSS rules like:

css
Copy
Edit
.secondary-sidebar {
display: none; /* OR */
visibility: hidden; /* OR */
width: 0;
}
If display: none; is not used, the element may still take up space. Try explicitly setting:

css
Copy
Edit
.secondary-sidebar {
display: none !important;
}
2. Modify the HTML Conditionals
If the layout generator uses a templating system (like Handlebars, Liquid, or PHP), check if there’s a conditional statement controlling the secondary sidebar. Look for something like:

html
Copy
Edit
{{#if secondary_sidebar}}
<div class="secondary-sidebar"> ... </div>
{{/if}}
If such a check is missing, manually wrap your sidebar in an if statement so it only renders when needed.

3. Adjust the Grid or Flexbox Layout
If the layout uses CSS Grid, check for grid-template-columns or grid-template-areas. For example:

css
Copy
Edit
.grid-layout {
grid-template-columns: 250px 1fr 250px; /* Left sidebar - content - right sidebar */
}
If the secondary sidebar is removed, you might need to update it to:

css
Copy
Edit
.grid-layout {
grid-template-columns: 250px 1fr;
}
For Flexbox, check if the sidebar has flex-grow: 1; or flex-basis set, which might still be reserving space.

4. Manually Remove the Sidebar HTML
If all else fails, make sure your generated index.html actually does not contain the <div class="secondary-sidebar">. Sometimes, empty elements still get rendered, keeping their space
Read More



suyu emulator is the updated version of World’s most popular, Open Source, Nintendo Switch Emulator, Yuzu. Made with C++ for smooth gaming experience on Windows, Linux and Android Devices.

bloxstrap is an open-source, feature-packed alternative bootstrapper for Roblox, designed for Windows PC users and compatible with all versions of Roblox

Redz Hub Script is one of the many Roblox games created to function as a social, interactive space where users can play different games.

The captivating Roblox game Blox Fruits Scripts lets the player explore a rich, One Piece universe.

wave executor is more than just a bug; It opens up a world of endless possibilities in the Roblox universe.

play cine is a free app that lets you watch Brazilian movies and TV channels, as well as a lot of content from around the world. The latter includes international films, television shows, and channels, with a focus on Brazilian culture.

delta executor is a Roblox executor that makes it simple to run scripts. Roblox is a well-known online gaming system and platform.

While Delta Executor official
is irrefutably one of the best Roblox Android agents, many individuals might want to utilize it on a Windows PC.

Roblox users can modify the game's appearance and add new features with the help of a tool called bloxstrap. It's open-source, meaning anybody can see and adjust the code. It's free and protected to utilize, and it's made for Windows PCs.



Searching for something to keep you engaged? We have lots of mod APK games to hold you back at apkhon from being exhausted the entire day. Our huge assortment of modded APK for Android will permit you to have some good times and beat any game!



spotify x is a changed rendition of the first Spotify music streaming application, and subsequently, it holds a portion of its plan components in its UI.

Yes, the secondary sidebar can be hidden or shown. If it's not too much trouble, attempt to eliminate information kt-application sidebar-optional enabled="true" quality from the body tag when you eliminate the auxiliary sidebar. lmc 8.4



Another thing you should consider is that if the user's screen resolution is less than 1110px wide, they won't see the sidebar at all. You may want to try a more fluid approach, using percentages to work out the placement - or if you want it on the right, you should really use the 'right: ' attribute instead of left. wave executor



4

Try making the position of the sidebar "fixed" while stating its exact position. So you would add the following to the div class "sidebar" in your CSS:

position: fixed;
left: 1110px;
top: 30px;

You can adjust the top and left positions to make everything fit to your likings, but this should roughly put the sidebar in the correct position. happyblackhole



Hi,

Sure, hiding/showing the secondary sidebar is a common case. Please try to remove data-kt-app-sidebar-secondary-enabled="true" attribute from the body tag when you remove the secondary sidebar.

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