Image Block

Go back to the list of Blocks

The image block can be added to a page by clicking on the Add Block button.

Add images with plus button.

Alternatively, you can type /image and press enter.

Add images with a hotkey command.
Add images with a slash command.

Detailed instructions on adding blocks

Block Toolbar

Each block has its own block-specific controls that allow you to manipulate the block right in the editor. 

Wide and Full Width icons, specific to image blocks (not available in all themes).
  • Change block type
  • Align
  • Link
  • Crop
  • Add text over image
  • Add duotone filter
  • More Options

Adding an Image

The media options panel will load with three options, Upload, Media Library, and Insert from URL.

There are three ways to add images - Upload, Media Library, and Insert from URL.
There are three ways to add images – Upload, Media Library, and Insert from URL.

Upload and Media Library will let you add or choose media from your library and embed it in your page.

Simply add the image from the Upload Files tab, then select it in the Media Library tab. Customizing the image attachment details, such as the Title, Caption, Alt Text, and Description, in the Media Library window can also be helpful for SEO and future navigation of your media library.

Upload or select an image from your Media Library, add image information, then press Select.
Upload or select an image from your Media Library, add image information, then press Select.

Resizing Images

Once the image is added to the editor, you can resize and align the images to better fit the surrounding content.

Resize an image by dragging its handles.
Resize an image by dragging its handles.

To resize an image,

  • Click on the image to reveal the draggable resize handles.
  • Click on the resize handles and drag the image to your desired size.

Alternatively, on the right-hand side in the Block Settings, the image size can be fine-tuned by adjusting width and height dimensions. There are also some convenient options in the block settings for setting the image to 100, 75, 50, and 25% of its original size.

Aligning Images

Align an image within a paragraph block.
Align an image within a paragraph block.

If you wish to align an image within a paragraph you will first need to insert the image just above the target paragraph block.

Alignment buttons with Align Right highlighted

From there, click on the image and select left or right alignment, this will merge the image into the paragraph block.

Finally, resize the image to your desired width and height.

Wide and Full Width Images

As support for the new editor is added to our themes, you will begin seeing icons for Wide and Full Width images. These two image sizes will allow you to expand the image beyond the theme’s usual content width.

A 'Wide' image in the editor.
A ‘Wide’ image in the editor.

Captions

If you wish to add a caption to a singular instance of an image, simply type it in the caption space below the image in the editor.

The link settings allow you to hyperlink your images. You may choose for clicking on the image to open an attachment page, the original media file, or a custom URL of your choice.

Your image can link to an Attachment Page, Media File, or Custom URL.
Your image can link to an Attachment Page, Media File, or Custom URL.

Image Editing

A new feature allows you to make quick crops without leaving the editor. Just hit the Crop button in the toolbar.

An expanded toolbar will appear. This will allow you to zoom an image.

Image toolbar showcasing the zoom option

There are also options to set the aspect ratio, such as to crop the image into a square.

Image showing the cropping tools for an Image block.

You can also rotate the image if it comes in sideways.

After you make any changes, click Apply.

Adding text overlay

A new feature allows you to convert image block to cover block so that you can add overlay text on the image.

Image showing the option to add text over the image

Upon clicking the Add text over image button the block transforms immediately to a cover block with its placeholder paragraph.

Add text over image placeholder
Add text over image placeholder

Adding image filters

A new feature allows you to add filters to your image that entirely replace the colors of your image:

Image with a red arrow pointing to the duotone option in the block toolbar of the image block.

You can think of the duotone effect as a black and white filter, but instead of the shadows being black and the highlights being white, you pick your own colors for the shadows and highlights. The duotone effect works best on high-contrast images, so it’s recommended that you use an image with a lot of large dark and light areas. You can also choose colors from your theme’s palette, or a custom color of your choice. Below is a video demo of this feature:

You can read more about the Duotone Feature.

External Image Upload

Sometimes you use a tool like Google Docs to write or collaborate on posts. When you’re ready to put the content on your site, you may copy and paste them into the editor.

One problem is that those images are likely hosted somewhere else like Google and could easily become broken if a change is made.

So, If you copy and paste an image from a resource like Google Docs, a button will appear on the toolbar to upload it to the media library. Click that, and it will stay in the post, but also upload to your media library.

More Options

These controls give you the option to copy, duplicate, and edit your block as HTML.

More options for the image block

Read about these and other settings.

Block Settings

Every block has specific options in the editor sidebar in addition to the options found in the block toolbar. If you do not see the sidebar, click the ‘cog’ icon next to the Publish button.

Block settings in the Image block
Block Settings

Styles

Depending on your theme, you may have several styles for your image. In Twenty Twenty-One, you can choose to make the image rounded, with borders or a frame.

Styles in Image block

Image Settings

The image settings offer a text field to add an Alternative Text description, which is important for accessibility and SEO.

You can choose the Image size between thumbnail, medium, large and full size. You can also change the Image dimensions – width and height dimensions of an image in 25% increments, or in exact pixel dimensions.

Border

The Image block provides border settings options to add border color, width, and radius.

For details refer to this support article: Border settings overview

Advanced

The Title attribute field is designed to describe the role of the image on your page. Many devices and browsers don’t display this text.

HTML anchor allows you to do “page jumping” to that specific image. Page jumping, also sometimes referred to as anchor links, is where you click a link and instantly get moved somewhere further up or down a long page.

To enable this, you put an HTML Anchor in your photo, and create a link that jumps to the anchor.

The advanced tab also lets you add a CSS class to your block, allowing you to write custom CSS and style the block as you see fit.

Changelog

  • Update 2022-12-12
    • Added Border settings
  • Updates 2022-11-28
    • Added missing image caption
    • Replaced content on more options
  • Updated 2022-03-15
    • Added notes about converting cover block from toolbar.
  • Updated 2022-01-25
    • Updated a few screenshots to align with expanded toolbar.
    • Added notes about using duotone.
  • Updated 2021-01-04
    • Updated all screenshots to WordPress 5.6
    • Added section on image title attribute (Gutenberg 6.9/WP 5.4)
    • Added section about easy upload for external images (Gutenberg 8.5/WP 5.5)
    • Added section about block editor image editing (Gutenberg 8.4/WP 5.5)
    • Added details on HTML Anchor and Image Styles to Advanced
    • Removed pencil (edit) icon and added more option menu
    • Removed some out-of-date content
    • Re-ordered to match the current block toolbar layout
  • Updated 2020-06-18
    • Added ‘Link back to blocks’ to the top of the page
    • Added the ‘Changelog’
  • Created 2019-03-07

Was this article helpful? How could it be improved?

First published

Last updated