Gutenberg Issues
-
I have this up and running correctly on a site I just installed Gutenberg on and am testing.
It looks like Gutenberg by default now wraps images in the following inside a post:
<figure class="wp-block-image"><img src="" data-lazy-type="image" data-src="" alt="" class="wp-image-3249 lazy-loaded"></figure>The plugin is still working, however I’m not seeing the background spinner and everything is loading at once since the figure doesn’t have a width set to it so a equivalent height doesn’t get set.
It looks to be that adding
.wp-block-image { width: 100%; }fixes this.Thinking a check might need to be added to the plugin and then add this CSS in your plugin if Gutenberg is enabled?
The topic ‘Gutenberg Issues’ is closed to new replies.