• Resolved sonic1243

    (@sonic1243)


    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 alignright

    It 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

    • This topic was modified 2 years, 2 months ago by sonic1243.
    • This topic was modified 2 years, 2 months ago by sonic1243.
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.