Archived topic
How to remove the content-container?
5 replies · Started by Lars on April 20, 2020
I am sure there is a silly simple answer to this one, but so far I haven’t had any luck. My second alternative is to put lots of div's on ’visibility: hidden’, but I better ask first:
On my front page I only want to show the header and the footer, with nothing (no content-container) in between, how do I do that?
Hi there,
Nothing built-in for that.
This CSS should work though:
.site {
display: none;
}
Adding CSS: https://docs.generatepress.com/article/adding-css/
Let me know if this helps :)
That removed the footer as well. But this did the trick (with simple css on the Home-page only):
#page {
display: none;
}
My CSS shouldn't remove the footer.
#page and .site is essentially the same thing:
https://www.screencast.com/t/7HMoDiEvs8E
We might mean different things with "footer"?
I was referring also to the footer-widgets, I wanted to keep them. And the class .site removed them since that class was used for them as well.
Nonetheless I am very happy you sent me in the right direction.
.site should definitely not remove the footer widgets either.
You can see the illustration here:
https://www.screencast.com/t/C6rffiSBOwi