Hide Nav Drawer

Hide Nav Drawer

by Mihir J -
Number of replies: 2

Hi

Do we have any configuration to hide nav drawer? or say I do not want to show nav-drawer in boost child themes.

Please help

Thanks!

Mihir

Average of ratings: -
In reply to Mihir J

Re: Hide Nav Drawer

by Mary Evans -
Picture of Core developers Picture of Documentation writers Picture of Peer reviewers Picture of Plugin developers Picture of Testers

Hi,

I will assume that you are using Moodle 3.3.1 and the Boost theme as you did not state which versions as requested in our Theme Forum Rules.

I guess the easiest thing to do to hide the Nav drawer, would be to hide the toggle button in the navbar using CSS.

Something like this:

.navbar-nav [data-region="drawer-toggle"] button {
    display: none;
}

Hope this helps?

Mary

In reply to Mary Evans

Re: Hide Nav Drawer

by Mihir J -

Sorry, I missed to mention the moodle version and theme.

Yes, it is Moodle 3.3 and boost. I have tried your solution, however the problem is, it creates empty space on that position of nav-drawer so it is looking really odd... becasue i think page is starting from some margin-left.

Thanks again for your help!

Regards,

Mihir