[Resolved] Remove content section

Home Forums Support [Resolved] Remove content section

Home Forums Support Remove content section

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1406551
    Ivan

    Hello!

    I am just starting with GP Premium and already have a question.

    I used GenerateBlocks to create a block-hook that I placed after the front page header. I don’t want to have anything else on the front page. How can I remove the content section immediately after the block?

    Best solution I found was to make the background of the page body white, which kind of hides it, but also creates additional white space at the bottom so that the block content is not centered anymore.

    I would also like the block-hook to use the full height depending on the visitor’s resolution. Is this possible?

    Thank you,
    Ivan

    #1406594
    Leo
    Staff
    Customer Support

    Hi there,

    Let’s take care of one question per topic.

    Any reason why the current content is added with a block element?

    I feel like that should be in the actual content.

    Let me know πŸ™‚

    #1406716
    Ivan

    Hi Leo,

    Thank you very much for your response! Following your suggestion, I moved everything to the content section and the page looks much better now!

    However, the main reason to do it as a block element was that it gets attached to the header. Now the header and the content section are separated by a grey line (visible on mobile only) which I wanted to avoid on the front page. Anyway, I think I can live with that unless there is an easy solution? πŸ™‚

    For the other question (using the full height) I will open another topic.

    Thanks again,
    Ivan

    #1406938
    Leo
    Staff
    Customer Support

    You can create a header element to merge them:
    https://docs.generatepress.com/article/transparent-header-and-navigation/

    #1407301
    Ivan

    Thanks Leo, I will keep this in mind!

    #1407952
    Leo
    Staff
    Customer Support

    No problem πŸ™‚

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