Layouts
Unanswered
Sun bear posted this in #help-forum
Sun bearOP
Let's say my root layout has a Navbar, but in a nested layout i don't want that navbar to appear, i do not know how to remove an element from my root layout, i only know how to add. can someone explain with an example. thanks
6 Replies
@Sun bear , if you have your navbar in your root layout, it will be always there across the pages.
if you don't need it in your nested route, you need to move your navbar from the root layout
and then put it in your page.tsx of root segment
also if you have lots of pages need navbar, group those routes using
() and then create a layout of that grouped routes, put the navbar inside itSun bearOP
thanks so much. that helps a ton
give it a try and mark solution if it works 🙂