[Resolved] Grid Skewed

Home Forums Support [Resolved] Grid Skewed

Home Forums Support Grid Skewed

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #2378933
    Caitriona

    Hello, I’ve been trying to set up a block with text and image on the homepage. I’ve been able to successfully implement it with the media+text block, but on mobile, that doesn’t really fit. So I used the grid to create what I wanted. On the preview version, it looks completely fine, but when I update the page and try in the incognito mode it’s just completely skewed. The rest of the site has no problems. Any idea why this happens?

    #2379042
    Ying
    Staff
    Customer Support

    Hi there,

    I don’t see a Grid block on your homepage, the section you highlighted in your screenshot is using WP core block.

    And it looks good to me:
    https://www.screencast.com/t/LnhU8xz39rXP

    #2379833
    Caitriona

    Hello, I don’t think I have a screenshot but I tried with the grid and it didn’t show up correctly. The media + text box that I am using now looks bad on mobile

    #2379834
    Caitriona

    Will I try the grid again so you can see that? Or maybe it is possible to continue using what I currently have, just make it more compatible with mobile?

    #2379910
    David
    Staff
    Customer Support

    Hi there,

    try adding this CSS to your site:

    
    @media(max-width: 768px) {
        }
        .wp-block-media-text.is-stacked-on-mobile {
            display: block;
        }
        .wp-block-media-text__media {
            max-width: 250px;
            margin: auto !important;
        }
        .wp-block-group__inner-container {
            padding: 0 !important
        }
    }
    #2380175
    Caitriona

    Hi, that didn’t help exactly. I went back to the grid, so you can see how it is behaving. Please check the screenshots of the preview versus the updated version.

    #2380350
    Ying
    Staff
    Customer Support

    The Grid block doesn’t work, it is because there’s no dynamic CSS generated.

    Something is blocking it. Can you try to disable all plugins except GB and GP premium to test?

    And could you go to GenerateBlocks > settings, click the Regenerate dynamic CSS button?

    Let me know!

    #2380376
    Caitriona

    Hey, got it, thanks. It was the minify CSS files on my WP Rocket plugin. If I want to continue using it on my site for faster speed, maybe I can exclude specific CSS files. Is there any way to know the CSS file name so I can exclude it from minification?

    #2380422
    Ying
    Staff
    Customer Support

    The CSS is generated dynamically, you can try setting the CSS print method to inline embedding at GenerateBlocks > Settings.

    Let me know if this works.

    #2380435
    Caitriona

    It seems to work. Thank you!

    #2380456
    Ying
    Staff
    Customer Support

    Great! You are welcome 🙂

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