First and foremost try to identify what is breaking the gallery by just disabling CSS or JS or HTML or Image optimization (incl. lazyload). Based on that we can see what the next steps need to be š
frank
I tried all three options:
- Optimize JavaScript Code? (disabled and clead cache) ā nothing
- Optimize CSS Code? (disabled and clead cache) ā nothing
- Optimize HTML Code? (disabled and clead cache) ā nothing
This is default gutenberg gallery, without pluginsā¦
I resolved layout problem when i disabled āRemove WordPress block CSSā in Extra tab, but there is still a problem when i click on an image, i canāt see full-size because of the caption text vertical orientation :((
i also added ā?ao_noptimize=1ā and gallery working like a charm š
-
This reply was modified 2 hours, 29 minutes ago by
schleewoon.
I fixed all :)))
after 4h I found the solution, I just disabled these two options in Autoptimize:Ā
ā āRemove WordPress block CSSā in the Extra tab
ā āLazy-load images?ā in the Images tab
and now all theĀ galleriesĀ are working like a charm.
Thank you and sorry for this Sunday hassle š
BestĀ
no worries @schleewoon š
re. āremove wordpress block CSSā; that one is off by default and when youāre using blocks (such as wp-gallery) you should indeed not activate that option.
re. lazyloading; you could try excluding those images from being lazyloaded?
enjoy your Sunday!
frank