Gutenberg gallery has no CSS in my custom theme


I just developed a custom WordPress theme and there is one issue I need to fix. While all my pages and plugins work perfectly, I have noticed that using the block editor, the default gallery isn’t working. When I use it, it’s rendered as a default ul tag, and I can see in the dev console that all the classes associated with the gallery (i.e blocks-gallery-grid or blocks-gallery-item) have no associated CSS rules.

I suspect that many of the default CSS is missing too so I think that I have a CSS file missing so I would like to know what’s the file that contains it by default or if there is a plugin I can install to have this file.

Many thanks,

user1319182 4 months 0 Answers 18 views 0

Leave an answer