Hi! That sounds a lot like an issue that was recently fixed. Could you share a few more details about your setup to help us debug? It would be useful to know:
* WordPress version
* Gutenberg version
* If you are using the default image block for the avatar, or a custom block
* Any other plugins you have active
* Active theme
In the meantime, a quick fix would be to force the image to align left, and add a Spacer block right under it, with height set to 1px so it won’t affect the layout. This should ensure that the text below doesn’t wrap around the image.
Hello @isabel_brison ,
I am 100% sure this is related to updating WordPress to 5.6 version. It happened right after I updated the WP version to the newest one.
After I rollbacked my WP to 5.5.3 (Oct 30 release), it works normally again and the picture alignment is just fine.
I am not sure why this is happening. I would like to use the newest version of WP but I am really upset with this bug it’s causing.
Every plugin I have is updated. It is the default image block.
Other plugins I am using:
Akismet Anti-Spam
Asset CleanUp: Page Speed Booster
Atomic Blocks – Gutenberg Blocks Collection
Code Snippets
Cookie Notice
Edit Author Slug
Favicon by RealFaviconGenerator
Jetpack by WordPress.com
OneSignal Push Notifications
Read Meter – Reading Time & Progress Bar for WordPress.
Really Simple SSL
Remove Footer Credit
Simple Author Box
Site Kit by Google
Smash Balloon Instagram Feed
Stackable – Gutenberg Blocks
ThirstyAffiliates
Title and Nofollow For Links
Webcraftic Robin image optimizer
Wordfence Security
WP Downgrade | Specific Core Version
WP Fastest Cache
WP Mail SMTP
WP Rollback
WP-PageNavi
WPS Hide Login
Yoast SEO
Active Theme: Colormag
btw thanks for the quick fix tip, I will definitely try it
-
This reply was modified 3 years, 4 months ago by misaka1.
Hi @misaka1 , thanks for the extra info! I can reproduce the issue with the Colormag theme, but it’s also happening in 5.5.3 for me. It seems to be caused by theme styles: the image wrapper center-aligns its contents, and the image itself also gets centered as a result. This doesn’t happen on any of the default themes because the image is set to display: block
on those.
Is it possible there was a theme update around the time of 5.6 that caused this? It might be worth raising the issue with them.
Otherwise, you could try adding a snippet of CSS in the customizer to fix the issue globally, something like:
.wp-block-image img { display; block; }
But make sure to check if that doesn’t cause issues with other images, as it will affect all image blocks.
It seems to not be doing anything. 🙁
Also, if I add .wp-block-image img into additional CSS, it’s red. I rollbacked three updates ago and it doesn’t seem to change, but each them when I downgrade my WP version to 5.5.3 it shows correctly again. I have just updated it now, and it shows in the center again. I absolutely don’t get it.
By the way, why is it that I can’t copy paste spacer and separator in Gutenberg editor? All other blocks work with shortcut ctrl c, ctrl v. It has been bugging me for some time. There are the blocks where using shortcuts (keyboard) doesn’t work for me. If I try ctrl c, it does nothing. It works only if I click on the block and copy it like that.
Thanks!
-
This reply was modified 3 years, 4 months ago by misaka1.
Oh whoops, sorry, just realised there was a typo in that snippet. It should read
.wp-block-image img { display: block; }
(that’s why it was showing red)
By the way, why is it that I can’t copy paste spacer and separator in Gutenberg editor?
That sounds like a bug! Thanks for letting us know. I’ll write up a report for it and hopefully it’ll get fixed soon.
I added the code now. It seems to be working, thanks a lot!
By the way, this copy function with ctrl c seems to be dependant on the version of WP too for me. When I had 5.5.3, it could copy at least Separator, but could not copy Spacer.
In 5.6, I can’t copy either of them with ctrl c anymore. It’s indeed a bug.
Thank you for your time, it was of great help to me
No worries, happy to help!