You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Currently, the images are wrapped by .wp-block-image, no matter their alignment. No other class is added, making impossible to stylize following elements based on image alignment.
Describe the solution you'd like
Is it possible to add a class to the wrapping div? Something like .wp-block-image--left-aligned-child and wp-block-image--right-aligned-child.
@robsonsobral I think this issue will need some more information to be able to progress.
Here's the HTML markup I see when aligning an image block in Gutenberg v8.5.
editor:
post:
This seems different to what you mentioned above when you mention a wrapping div with the class .wp-block-image. Checking an older version, it seems like this has changed, so it might be worth testing against more recent versions of the plugin.
Related to your issue I'd also recommend taking a look at #20650, which talks about some of the issue with alignments and potential solutions.
Is your feature request related to a problem? Please describe.
Currently, the images are wrapped by
.wp-block-image
, no matter their alignment. No other class is added, making impossible to stylize following elements based on image alignment.Describe the solution you'd like
Is it possible to add a class to the wrapping
div
? Something like.wp-block-image--left-aligned-child
andwp-block-image--right-aligned-child
.Describe alternatives you've considered
I've no idea for other solution.
Thank you so much!
The text was updated successfully, but these errors were encountered: