- This topic has 10 replies, 3 voices, and was last updated 5 months ago by
Ying.
-
AuthorPosts
-
October 19, 2022 at 8:09 am #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?
October 19, 2022 at 10:15 am #2379042Ying
StaffCustomer SupportHi 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/LnhU8xz39rXPOctober 20, 2022 at 4:30 am #2379833Caitriona
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
October 20, 2022 at 4:32 am #2379834Caitriona
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?
October 20, 2022 at 6:01 am #2379910David
StaffCustomer SupportHi 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 } }
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/October 20, 2022 at 8:11 am #2380175Caitriona
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.
October 20, 2022 at 11:00 am #2380350Ying
StaffCustomer SupportThe 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!
October 20, 2022 at 11:19 am #2380376Caitriona
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?
October 20, 2022 at 12:10 pm #2380422Ying
StaffCustomer SupportThe CSS is generated dynamically, you can try setting the CSS print method to
inline embedding
at GenerateBlocks > Settings.Let me know if this works.
October 20, 2022 at 12:30 pm #2380435Caitriona
It seems to work. Thank you!
October 20, 2022 at 1:03 pm #2380456Ying
StaffCustomer SupportGreat! You are welcome 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.