-
Galleries have been really weird since I switched to GP. They all line up one after the other like blocks and even if I change the columns to 1, 2, 3 or whatever, nothing changes on the front end.
How can I fix this? (Recommended block?)
-
Hi there,
I see that the gallery block is missing some CSS to make the grid layout, but I don’t think it’s related to GP.
If you swtich to the twenty-twenty series theme, the issue is gone?
Let me know ๐
-
So how do I fix this, because I picked a theme from GP LOL?
-
So how do I fix this, because I picked a theme from GP LOL?
No, it’s not related to GP or GP templates.
If you swtich to the twenty-twenty series theme, the issue is gone?
Can you try?
-
I mean….. I can.. But, I am using GeneratePress theme and then I’ve created a Child Theme, so I’m currently using Generate Press Child Theme. Wouldn’t I lose not only all my GP benefits if I switched to Twenty 20 or whatever, but also my sites design?
-
Just changed to Twenty 20 and lost both my themes in recommended, plus the issue is still the same with the gallery. MASSIVE L for me :/
-
I refreshed the page and I got my Child Theme option back up, so I’ve switched back.
-
plus the issue is still the same with the gallery
Thanks for testing.
So it clearly shows that it’s not a GP issue.
The gallery doesn’t work because it’s missing a piece esential CSS from the gallery block, which we are not in control unfortunately.
You will need to check with WP’s support on this one.
-
OMG I’m still in contact with them about my Jetpack related posts not showing up on my CPT’s. Been back and forth with them over that for 3 weeks now, they’re not gonna like this lol
Okay thanks Ying
-
In the meantime, you can try this CSS before WP support get back to you:
figure.wp-block-gallery { display: flex; flex-wrap: wrap; } -
I had a 1 hour back and fourth with WP support late last night, we tried literally EVERYTHING… They advised to send the Perfmatters author a email, so just waiting to hear back from him and will post the solution here.
-
Thanks ๐
-
So Perfmatters said I had remove global styles turned on and this is what was causing the conflict. Turning it off solved the problem with the image gallery.
The css you supplied me with also worked, I turned on (Remove Global Styles) and added the css and it fixed it.
So this is the solution if anyone has Perfmatters plugin and has remove global styles enabled.
Thanks for the css code Ying ๐
-
No Problem ๐
- You must be logged in to reply to this topic.