Hi
I want to only hide the left side menu on the login page.
I have added
$('[data-widget="pushmenu"]').PushMenu('collapse');
to login page> startup script
which works, but how to i reset it back to default after login?
thanks
Hi
I want to only hide the left side menu on the login page.
I have added
$('[data-widget="pushmenu"]').PushMenu('collapse');
to login page> startup script
which works, but how to i reset it back to default after login?
thanks
Hi,
I use this code in Client Scripts -> Other -> Login Page -> Client Script
$('[data-widget="pushmenu"]').PushMenu('collapse');
$(".main-header").remove();
to restore to default in another pages.
Client Script -> Global -> Pages with header/footer
$('[data-widget="pushmenu"]').PushMenu('expand');
PHPMaker v2021
I hope it helps you,
Omar
mobhar wrote:
if (ew.IS_LOGGEDIN) $('[data-widget="pushmenu"]').PushMenu('expand');
There is a little problem with this, when you open de page on a mobile, the side bar always appear when you regresh de page, you need to add a condition of the screen px or something before
On the Advance Setting -> AdminLTE layout class I am using layout-navbar-fixed
and also I have put this code at Startup Script under Client Script -> Global -> Pages with header/footer
$('[data-widget="pushmenu"]').PushMenu('collapse');
In this case I would like to hide the sidebar totally only on the login page
including the 3 line menu icon on the Top Left.
sticcino wrote:
$("body").addClass("sidebar-collapse"); // hide sidebar
It does not work