Hide side menu

Hi
I’m using the horizontal menu and I want to hide the sidebar menu, but I couldn’t. The menu panel remains blank.
I used these commands in the Global startup script$(“.main-sidebar”).hide();
$(“.main-sidebar”).remove();Please, how should I proceed? (v2022)

https://discourse.hkvstore.com/t/left-sidebar-collapsed/2533/1

Thanks, I changed Tools/Advanced Settings → AdminLTE layout class → sidebar-colapsed but it didn’t work in v2022.12

Make sure you have generated the config.php again. Check the HTML source in your browser and make sure the tag has CSS class “sidebar-collapse” (not “sidebar-colapsed” or “sidebar-collapsed”).

Thank you
My goal is to simulate a navigation and menu layout.
I made a new project starting with a single item in the horizontal menu and it opened with the sidebar closed.
However, the body tag was

In the config file it was "SIDEBAR_CLASS" => "main-sidebar sidebar-dark-lightblue".I added new items without any problems, but I'm not sure if the sidebar will be permanently closed.

Read the doc on Menu Editor:

If all menu items are set as navbar items, the left vertical menu will be hidden and top navbar will become like a horizontal menu.