Site logo

[Resolved] Remove container padding for pages and custom post type

Home Forums Support [Resolved] Remove container padding for pages and custom post type

Home Forums Support Remove container padding for pages and custom post type

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1321030
    Ricardo

    Hi,

    I’m using generate blocks and I wonder if you could help me to get the first container with no padding and margin between the header, like in this page:

    https://oportofado.com/pt/concertos-de-fado/ideal-fado-porto/

    I tried to remove top padding from the container and all subcontainers but didn’t do the trick:

    https://wordpressmu-89823-1306048.cloudwaysapps.com/lugares/fado-na-baixa/

    So I’m wondering what could be the best way to do it.

    Is it to add a negative margin?

    Thanks in advance,
    Ricardo

    #1321149
    Leo
    Staff
    Customer Support

    Hi there,

    Does it help if you create a full width container layout element and assign it to pages and your CPT?
    https://docs.generatepress.com/article/layout-element-overview/#content-1

    #1321671
    Ricardo

    Hi,

    I’ve already did it and it didn’t work

    But I think a got a fix. I set layout/container/content separator to 0.

    Thanks anyway!

    #1322380
    Leo
    Staff
    Customer Support

    Glad you found a fix 🙂

    #1566132
    deba

    hi,
    Is it possible to remove container separators selectively? I want to remove the top separator of the first container and the sidebar, so that there is no space between the first container and the header, and the sidebar and the header.

    #1566319
    Leo
    Staff
    Customer Support

    Can you open a new topic for your question?

    Thanks 🙂

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Remove container padding for pages and custom post type’ is closed to new replies.