ACF Background Image

PRO 2 min read Updated
On this page

The ACF Background Image feature lets any block that supports a background image take that image from an ACF or SCF image field. It works on core blocks such as Group, Columns, and Media & Text, on third-party blocks, and on the plugin’s own blocks such as ACF Text and Flexible Content layouts.

Use it for a hero image that changes per post, a background per Repeater or Flexible Content row, or an image set once on an Options page and reused across templates.

How to use it

  1. Select a block that supports background images, for example a Group.
  2. In the block sidebar, open the Background panel. Next to Image, Color, and Gradient you’ll find ACF Image.
  3. Click ACF Image, choose the field source (current post, options, a specific post, and so on), and pick an image field. Only image fields are listed.
  4. Adjust the Focal point, Fixed background, Size (Cover, Contain, or Tile), and Repeat — the same options as a regular background image.

Once a field is chosen, the item shows as ACF: field label with a thumbnail, and the editor previews the background from the field’s value. Click the reset icon to remove it.

If the block does not show ACF Image in its Background panel, it does not support background images. The Cover block uses its own image setting and is not supported.

Fallback image

The ACF field takes priority over a background image chosen from the Media Library. When the field is empty, the manually chosen image is shown instead; when both are empty, the block renders normally without a background image.

Inside loops

Inside a Repeater, a Flexible Content layout, a post, term, or user loop, or a core Query Loop, every row or item gets its own image. To use a sub field, put the block inside the loop and choose the sub field as the image field.

Good to know

  • All image field return formats (Array, URL, and ID) are supported.
  • The full-size image is used.
  • The block gets the has-background class, like any block with a background image.
  • Gallery fields, URL or text fields, and background videos are not supported as image sources.