wp-block-image alignment problem
-
Hi, I’m creating a theme from scratch, and aligning images isn’t working.
For me when I align an image it gets wrapped in a div:
<div class=”wp-block-image”>The TwentyTwenty-Two theme omits that div completely, so you get the figure with class; allowing floats to work:
<figure class=”wp-block-image alignrightIt seams to be this problem, but this code/plugin is not doing anything for me: https://www.binarymoon.co.uk/2021/03/fixing-gutenberg-image-floats
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘wp-block-image alignment problem’ is closed to new replies.