[Resolved] Problem with full-width blocks after upgrade to 3.21 and 2.2.0

Home Forums Support [Resolved] Problem with full-width blocks after upgrade to 3.21 and 2.2.0

Home Forums Support Problem with full-width blocks after upgrade to 3.21 and 2.2.0

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2394627
    Eric

    I’m testing the upgrade to GP 3.21 and GP Premium 2.2.0 on a staging site. After upgrading, some of my full-width blocks no longer work properly. Without changing anything on the page, a block at the top of the page functioning as a hero block and with the container set to full-width now only appears with a contained width. Links to sample pages having this problem are provided.

    #2395054
    David
    Staff
    Customer Support

    Hi there,

    in your Customizer > Additional CSS you have this:

    
    body {
        position: relative;
        display: flex;
        flex-direction: column;
    }

    Children inside a flex column that do not have an explicit width will collapse to their content.

    If you remove that CSS then the problem will go away.
    If you want to keep that CSS then you need to add this to:

    
    .full-width-content .container.grid-container {
        width: 100%;
    }
    #2397468
    Eric

    Ah, thanks for catching that! I’m not actually sure why that CSS was there — I must have been testing something else on my staging site. All is well now that it has been removed. 🙂 Thanks!

    #2397824
    David
    Staff
    Customer Support
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.