- This topic has 12 replies, 3 voices, and was last updated 3 years, 4 months ago by
David.
-
AuthorPosts
-
September 20, 2019 at 6:08 pm #1014920
Daniele
I’m using the same identical settings in this two pages:
https://abracadabra.photography/portfolio/fashion/
https://abracadabra.photography/portfolio/beauty/But in the first the layout is broken
I inspected the page and I saw the only difference is that the gallery is displayed with figure (first case) and ul (second case)
I don’t know why…they are both Gutenberg galleries.
Please help
I’m using last generate press version with Gutenberg 6.5.0
September 21, 2019 at 9:23 am #1015346Tom
Lead DeveloperLead DeveloperHi there,
I’m not seeing any difference between the two pages. Did you get this fixed?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentSeptember 21, 2019 at 10:05 am #1015384Daniele
Hi,
They are shifted to the right.If you see it from mobile the difference is more marked
September 21, 2019 at 3:56 pm #1015551David
StaffCustomer SupportHi there,
i think your Cache plugin is messing with the order of the CSS. Try flushing the cache and see if it resolves the issue, if not add this CSS – it should overcome the problem:
ul.blocks-gallery-grid { margin-left: 0 !important; }
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/September 21, 2019 at 4:20 pm #1015561Daniele
Hi David,
tried to disable cache, the issue persist.I solved adding the CSS, maybe is something you have to look to for the next release.
thanks for your help
September 21, 2019 at 4:31 pm #1015565David
StaffCustomer SupportIts odd – the same CSS is being applied to both galleries and the CSS rules for the gallery are more specific for zeroing out the margin so it should work as standard.
I’ll do some other tests.
Glad to be of helpDocumentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/September 21, 2019 at 4:34 pm #1015566Daniele
I think there’s something new with the galleries..It happened when I updated the galleries with new images.
The old galleries always worked as usual…Notice that I use the Gutenberg plugin (now 6.5.0), that is always some versions ahead to the official wordpress gutenberg
September 21, 2019 at 5:08 pm #1015573David
StaffCustomer Support6.5 added caption support to the Gallery Block and there have been some other general changes to the editor. This may have interfered with the CSS as well. I’ll also take a look to see if there CSS changed when they added the Figure tag wrapper to the gallery images.
But here was the issue:
You can see the
.wp-block-gallery
CSS is being overwritten by theUL
css at the bottom.
wp-block-gallery
as a class beats theUL
on specificity so should be applied. The only way it wouldn’t be is if the CSS order has been scrambled. Which can happen during cache/optimization.Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/September 21, 2019 at 5:10 pm #1015574Daniele
I understand…I will try disable Cloudflare cache as well to see if the issue disappear…
however with the CSS added to style.css is solved.
thank you!
September 21, 2019 at 5:11 pm #1015575David
StaffCustomer SupportYou’re welcome – ill also check the CSS – theres a possibility the issue is with the change of markup and you have some residual CSS that isn’t getting applied. Thanks for bringing it to our attention.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/September 21, 2019 at 5:24 pm #1015578David
StaffCustomer SupportFYI spotted the issue, in the latest update they moved a CSS class which effect the removal of the margin-left. We’ll either fix or raise an issue with Gutenberg to have them apply the margin removal. Thanks again
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/September 21, 2019 at 5:26 pm #1015580Daniele
Great David!
Happy to hear thatSeptember 21, 2019 at 5:30 pm #1015582David
StaffCustomer SupportThanks again
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/ -
AuthorPosts
- You must be logged in to reply to this topic.