#How to not show header on certain pages for an app?

12 messages · Page 1 of 1 (latest)

urban tapir
#

In my layout.tsx, I dont want to show <Header /> on certain pages, how can I do that? I cant use useRouter as its for the client side and I cant turn layout.tsx into client side through use client, cuz it holds everything in the app. Whats the appropriate way to do this?

warm locustBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

strong cairn
#

use route groups and put the header one one of them and the other one don't...

urban tapir
#

is there no other way

#

;-;

#

that's a lot fo work

strong cairn
strong cairn
#

@urban tapir did it work?

urban tapir
#

YEAH!

#

omg thanks so much

#

Thank you:))

warm locustBOT
#
✅ Success!

This question has been marked as answered! If you have any other questions, feel free to create another post

Jump to answer

[Click here](#1158351160701370398 message)