F
Filament13mo ago
mkamal

Hiding Navigation Sidebar in a custom page

Is there a proper way to hide whole navigation bar in a certain custom page?
Solution:
Otherwise you need a custom layout for that page.
Jump to solution
6 Replies
Dennis Koch
Dennis Koch13mo ago
I don’t think there is an easy way. You could try to hide it via CSS on that page.
Solution
Dennis Koch
Dennis Koch13mo ago
Otherwise you need a custom layout for that page.
wyChoong
wyChoong13mo ago
SimplePage?
Dennis Koch
Dennis Koch13mo ago
Yeah, could do it for the OP, but hides more than just the sidebar
wyChoong
wyChoong13mo ago
Filament::getPanel()->navigation(false)
//->sidebarWidth('0px')
Filament::getPanel()->navigation(false)
//->sidebarWidth('0px')
use this in the page's mount will not render the navigation items but the content doesn't expand due to how the layout are designed if set the sidebar width to 0 then it will use the whole width but header title is hidden 😂
mkamal
mkamalOP13mo ago
I feel this is the most convenient solution for me Thank you Yes I went this way and I was about to sacrifice the logo but it deserves more effort from me 😅
Want results from more Discord servers?
Add your server