thomas
April 19, 2023, 1:42am
1
I put this code in the Page_Head
<script>
loadjs.ready("jquery",function(){
$("html").addClass("sidebar-collapse");
loadjs.ready("load",function (){
$("html").removeClass("sidebar-collapse");
})
})
</script>
But still the sidebar menu is not Auto Hide.
I am using PHPMaker 2023.12
arbei
April 19, 2023, 4:32am
2
You may use the enableRemember option to remember the sidebar status, see Push Menu Plugin , e.g.data-widget=“pushmenu” data-enable-remember=“true”
thomas
April 19, 2023, 8:06am
3
It works by putting the following code inClient Servers → Global → Pages with Header/Footer → Startup Script$(‘[data-widget=“pushmenu”]’).PushMenu(‘collapse’);But It shows the menu first and after that it close the menu.
Is there any other way to auto hide it.
arbei
April 19, 2023, 9:33am
4
You may Inspect HTML element and add your own CSS styles , see what the CSS class is when the sidebar is hidden.
mobhar
April 19, 2023, 3:42pm
5
thomas wrote:
But It shows the menu first and after that it close the menu.
Then you might need to write PHP code in server-side, so that the change will not be seen from client side.