[Support request] How to remove the content-container?

Home Forums Support [Support request] How to remove the content-container?

Home Forums Support How to remove the content-container?

  • This topic has 5 replies, 2 voices, and was last updated 4 years ago by Leo.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1246779
    Lars

    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?

    #1247062
    Leo
    Staff
    Customer Support

    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 🙂

    #1247140
    Lars

    That removed the footer as well. But this did the trick (with simple css on the Home-page only):

    #page {
        display: none;
    }
    #1247233
    Leo
    Staff
    Customer Support

    My CSS shouldn’t remove the footer.

    #page and .site is essentially the same thing:
    https://www.screencast.com/t/7HMoDiEvs8E

    #1247427
    Lars

    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.

    #1248146
    Leo
    Staff
    Customer Support

    .site should definitely not remove the footer widgets either.

    You can see the illustration here:
    https://www.screencast.com/t/C6rffiSBOwi

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.