Video Block

Want to embed YouTube or Vimeo videos in your WordPress site? Adding videos to your pages is a great way to increase dwell time and boost your search rankings. Then the Video is the block you need to use!

How to add a Video to your WordPress pages

To add a Video to your site, you will need to have the Video block enabled under FireBlocks.

You can manage your blocks by reading more here.

Once you have the Video block enabled, it’s as simple as following the steps listed below:

Within the Gutenberg editor, click on the plus sign, search for “Video” under the FireBlocks category and select it.

Once you have placed the Video block on your page, you can start by entering either a YouTube or Vimeo URL to get started.

Once you have added a URL, you can press “Embed” to add the video on your page.

Then, the video will be visible on your page.

Block Settings

Below we will explain each section and its settings that are provided by the Video block.

Video

Define video-related settings such as autoplay, autopause, set video to start playing muted, loop, start and end time in seconds, show controls, and show branding.

  • Autoplay
    • Set whether to autoplay the video.
    • Notes
      • the user will need to interact first with the page in order for the autoplay to work
      • The video may not start auto-playing if not muted or based on the user’s browser privacy settings.
  • Autopause
    • If enabled, the video will autopause if it goes outside the viewport.
  • Muted
    • Set whether to start the video as muted.
  • Loop
    • Set whether to loop the video.
  • Start time in seconds
    • Set the start time of the video.
  • End time in seconds
    • Set the end time of the video.
  • Show Controls
    • Set whether to show video controls.
  • Modest Branding
    • If enabled, the video provider logo will not appear.

Block

Define the margin and padding of the block.

The available settings are listed below:

  • Margin
    • Set the spacing between the block and its surrounding elements.
  • Padding
    • Set the inner spacing of the block.

Cover Image

This section allows you to set a cover image for the video.

The available settings are listed below:

  • Cover Image
    • No Cover Image
      • Disables the cover image.
    • Auto (From video provider)
      • Adds a cover image automatically fetched by the video provider.
    • Custom
      • Allows you to set a custom cover image.

Colors

This section allows you to set the video color settings.

The available settings are listed below:

  • Background Color
    • Set the background color of the video.

Border

This section allows you to set the border appearance.

The available settings are listed below:

  • Border
    • Set the border of the video
  • Border Radius
    • Add rounded corners to the video

Box Shadow

This section allows you to set a shadow around the video.

The available settings are listed below:

  • Type
    • Define the shadow type (outset, inset) meaning (outside of the video or inside of the video).
  • Color
    • Set shadow color.
  • Blur
    • Set the blur radius.
  • Spread
    • Set the spread radius.
  • Left
    • Set the left position of the shadow.
  • Top
    • Set the top position of the shadow.

Block Demos

Below you can find a few Video demos:

YouTube Video

Vimeo Video

You can find more demos on the dedicated page of the Video block.

FAQ

Can I style the video?

The Video block support styling options such as setting padding, margin, background color, border as well as a box shadow. If you're in need of more options please contact us.

Can I add a cover image?

You can set either a custom cover image by selecting/uploading an image from the WordPress Media Manager or let the video provider automatically provide you with its thumbnail.

Can I autoplay a video?

By enabling "Autoplay" you ensure the video will start auto-playing as soon as the user has interacted with the page and the video has appeared in the user's viewport.

What type of videos can I embed?

With the Video block, you can embed any YouTube or Vimeo video. Support for more platforms such as Dailymotion as well as self-hosted videos will be supported in the future.

Was this helpful?