Make WordPress Core

Opened 6 months ago

Closed 6 months ago

#65157 closed feature request (wontfix)

Blocks: WordPress prevent videos from being set as backgrounds

Reported by: wurds Owned by:
Priority: normal Milestone:
Component: Media Version:
Severity: normal Keywords: reporter-feedback close
Cc: Focuses: ui, administration, template

Description

I'm attempting to set a video as the background for a block.
this block is a group which is nested inside a row.

A filter is being applied to the media gallery which makes it so only images can be picked.

Change History (4)

#1 @blackstar1991
6 months ago

It's not a bug.
This is normal behavior of the component.
If you need a full-width video component, you can create it yourself or download the plugin.
The image can be set because there is a [background ​https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties/background-image] property for CSS. You cannot put a video file in this property.

#2 @westonruter
6 months ago

  • Keywords reporter-feedback added
  • Version 6.9.4

The Cover block actually does allow you to set a video as the background.

Please try that block.

#3 @wildworks
6 months ago

  • Keywords close added

In WordPress 7.0, the cover block allows several providers to be embedded as background videos. See ​https://github.com/WordPress/gutenberg/pull/73023 for more details.

I believe this ticket can be closed.

#4 @poena
6 months ago

  • Milestone Awaiting Review
  • Resolution → wontfix
  • Status new → closed
Note: See TracTickets for help on using tickets.