Archived topic
different header on front page?
10 replies · Started by Melissa on August 7, 2019
I currently display my site name and main menu in the header. I would like to remove the site name from the header on the front page. Is this possible?
Hi there,
You can use the disable elements add-on to disable the site header on home page:
https://docs.generatepress.com/article/disable-elements-overview/
Let me know if this helps :)
I don't want to lose the whole header. I want the bar and the menu to stay. I would just like to remove the site title. Can I set a different header for the front page?
Try this CSS:
.home .site-branding {
display: none;
}
Adding CSS: https://docs.generatepress.com/article/adding-css/
Let me know if this helps :)
That didn't seem to have any effect.
I changed is to the below and it worked. Thanks for helping.
.home .site-header .site-branding {
display: none;
}
Glad you've figured out :)
Would it be possible to then move the menu to float in the center of the header instead of the right --only on the front page?
Try this:
@media (min-width: 769px) {
.home .inside-header {
display: flex;
}
}
Perfect! Thanks!
No problem :)