Skip to content

Cover: Enable background image controls - #77742

Closed
im3dabasia wants to merge 1 commit into
WordPress:trunkfrom
im3dabasia:feat/add-background-image-support-cover-block
Closed

im3dabasia wants to merge 1 commit into
WordPress:trunkfrom
im3dabasia:feat/add-background-image-support-cover-block

Conversation

@im3dabasia

Copy link
Copy Markdown
Contributor

What?

Closes #64703

Add Background Image panel support to the Cover block by enabling the backgroundImage support flag, matching the UI pattern used in the Group block.

Why?

Issue #64703 proposes adding a Background Image panel to the Cover block's Inspector, similar to the Group block's existing Background Image panel. Adds consistency among blocks.

How?

  • Implemented as per the Group block's patterns.

Testing Instructions

  1. Create or open a post/page
  2. Insert a Cover block
  3. Select the Cover block
  4. Go to the Styles tab in the Inspector panel
  5. You should see a Background image button
  6. Click it to open the media picker and select or upload an image
  7. The image should be applied to the cover block background
  8. Verify focal point and other background controls are accessible

@im3dabasia im3dabasia self-assigned this Apr 28, 2026
@im3dabasia im3dabasia added [Type] Enhancement A suggestion for improvement. [Block] Cover Affects the Cover Block - used to display content laid over a background image labels Apr 28, 2026
@github-actions github-actions Bot added the [Package] Block library /packages/block-library label Apr 28, 2026
@im3dabasia
im3dabasia marked this pull request as ready for review April 29, 2026 10:32
@github-actions

Copy link
Copy Markdown

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: im3dabasia <im3dabasia1@git.wordpress.org>
Co-authored-by: richtabor <richtabor@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@youknowriad

Copy link
Copy Markdown
Contributor

Thanks for this, @im3dabasia! #82751 added a Media section to the Cover block inspector using the same media control as Image and Media & Text, which resolved #64703. That approach replaces enabling the background image support here, so I'm closing this PR. If you think the Styles-tab placement is still worth pursuing, please open a new issue to discuss it.

@youknowriad youknowriad closed this Oct 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Block] Cover Affects the Cover Block - used to display content laid over a background image [Package] Block library /packages/block-library [Type] Enhancement A suggestion for improvement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use Background Image popover for Cover block media controls

2 participants