
A Guide to WordPress Gutenberg Image Block
Arrival of Gutenberg has introduced us to a new era of WordPress editing. Unlike Classic WordPress editor, Gutenberg comes with a library of ready-made elements, otherwise known as Gutenberg blocks. These new elements will ease your way through customizing WordPress posts and make it a more user-friendly experience. In this guide, we will do an overview of Gutenberg Image Block and all that you can do with it.
In a nutshell, Gutenberg Image Block lets you add an image anywhere you want on your page or post. If you click on a plus button in your editor, a new field will open. Here you can access Image option. As you can see below, in this editor, you have separate options for adding Gutenberg Image Block and Gutenberg gallery block as well.
In Gutenberg, there are three different ways to add pictures. You can upload an image from your computer, choose an already existing image from your Media Library, or insert it from URL.
At first glance, image block contains the same options as classic editor’s Add media button. However, upon closer inspection, it is evident that this is only partly true. There are some new useful options that come with Gutenberg that will further ease your picture editing experience.
First one is an addition of small, blue dots on your image. Thanks to these dots, you can stretch the picture and increase and decrease its size in any way you prefer. Another new option is possibility of writing caption at the bottom of the image.
You can find all the basic settings right above the Image Block. On the other hand, more advanced image settings are located in the Block tab. These include Alt Text, Image size, Link Settings and Advanced.
- Alt Text – here you can add a short description of your image. However, you can leave this field blank if your image isn’t a core element of your content.
- Image size – there are possibilities of changing your image size to default sizes, such as Thumbnail, Medium, Large and Full Size. Another alternative is to add exact image dimensions in pixels, or determine desired size in percentage related to the original size. If you make any mistakes, you can always click on the Reset button.
- Link settings – here, you have four different options: None, Attachment page, Media File and custom url. None option lets you display the image without a link, while Attachment page links to a specific page on your site that has a purpose of providing information about the image in question. As for Media File, it opens the image by itself. The last option allows you to add a custom url for your image.
- Advanced – in this field you can add an additional CSS class and write your own custom styles.
Additional image bar options include image alignment (align it to the left, right or center) and Change block type. Choosing this option gives you an ability to transform your block to another compatible block with a single mouse click. For instance, you can change your block type to gallery, media&text, cover and file.
If you want to edit your image in the same way as you did in the classic WordPress editor, you can easily do so by clicking on the pencil icon to open the image in WordPress media library.
Conclusion
This covers a general outline of Image Block in Gutenberg and its options. Even if all these new features make it difficult for you to get around, by following this guide you will realize that, in fact, it’s not that complicated. We hope you have fun with your image editing!
We hope that you found this article to be helpful. If you liked it, please feel free to check out some of these articles as well!
greg
how do i add the image titlle and image description in this wp-block-image?
Jelisaveta Sapardic
To do this, you need to go to Media > Library, then find the photo that you’d like to add the image title and description to. Once you open the photo, there you will be able to find description and title fields.
Alternatively, you can see how we’ve done it in this video. While you’re at it, you can also like our video and subscribe to our channel for more useful tutorials of this type. Thanks!
Jeff
How can I enter one exact image dimension like width and have WordPress calculate the other dimension? This used to work perfectly in the classic editor when selecting Custom Size.
Jelisaveta Sapardic
This happens because the Image Dimensions option in Image Block has a bug. If you change one image dimension, WordPress still does calculate the other dimension, but because of a bug, it doesn’t display that the other dimension has been calculated and that the image will in fact be changed proportionally. Once you set your desired dimensions and go see how your image looks like live, you will be able to notice these changes.
The other way to change image dimensions proportionally is to go to Media > Library and find the desired image. You will find an Edit Image button right under the image. Once you click on it, the option to change the image dimensions proportionally will appear on the right side of the screen.
If your image appears more than once on your website, there is an option here that lets you apply changes to all image sizes, to thumbnail only, or to all sizes except thumbnail. However, you should note that if you want to set different dimensions to some or all images individually, you will have to do so in the Image Block.
We hope this helped. To see more useful tutorials of this type, you can also subscribe to our YouTube channel.
Andrew
Thanks. I like your articles. I’ll subscribe 👌