Video Background

Description

This plugin is an easy and simple way to add a video background to any element on your website.

Note: You may need to play around with the element’s z-index for the video background to display properly.

There is now a pro version of Video Background with awesome features like YouTube and Visual Composer integration to make your life easier! Check it out!

There are 4 simple required fields:

  • Container: This fields specifies where you would like the video background. If you want it to cover the whole website, you would enter “body”. If you want the video background to be in a class called “.header” you would enter “.header”
  • MP4: Link to the .mp4 file. For Safari and IE support.
  • WEBM: Link to the .webm file. For Chrome, Firefox, and Opera support.
  • Poster: This will be used for the fallback image if video background is not supported (mobile for example)

There are also 5 additional optional fields for having a more beautiful video background:

  • Overlay: Adds a pattern overlay over the video for optimal reading of text.
  • Overlay Color: If overlay is enabled, you can select the color of the overlay using the colorpicker.
  • Overlay Alpha: If overlay is enabled, you can specify the amount of transparency.
  • Loop: Enable or disable the looping of your video! Play your video once, or infinite!
  • Mute: in Video Background, you now have the option to unmute your audio!

There is now a more detailed shortcode for video background. Input this shortcode in the bottom of the content editor of the page or post you would like video background on.
[vidbg container=”body” mp4=”#” webm=”#” poster=”#” muted=”true” loop=”true” overlay=”false” overlay_color=”#000″ overlay_alpha=”0.3″]

Demo:
https://pushlabs.co/docs/video-background/

Screenshots

  • 4 fields? That’s it? Yep, simply enter in the element you’d like the video background to be in and key in the paths to the video and fallback image. Awesome.

Installation

Installation is simple.

  1. Upload video-background to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Fill in the settings on the “Video Background” metabox on the page or post you’d like the video background to appear on.

FAQ

Installation Instructions

Installation is simple.

  1. Upload video-background to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Fill in the settings on the “Video Background” metabox on the page or post you’d like the video background to appear on.
What size is recommended for the videos?

15mb is usually best for me, I try to not exceed that. Any video after 15mb starts to slow down and sometimes will not load. A great compression tool for Video Background is https://clipchamp.com. Check with your hosting provider to make sure you have enough bandwidth for video backgrounds.

Is this compatible with Internet Explorer?

Video background works for Internet Explorer 9 and above. Any version below that will use the fallback image.

How would I make a full width/height background video?

Simply fill out the 4 easy fields. Be sure for the container you enter “body” (without the quotes)

What filetypes are allowed for fallback images?

Fallback images can be .jpg, .png, and .gif.

I entered all the correct fields, but my video will still not load. What am I doing wrong?

This can be an issue with the file size of the video you are uploading. Make sure that you video is compressed and is does not exceed 15mb. Once you get over 15mb, it takes a while to load. Check with your hosting provider to make sure you have enough bandwidth for video backgrounds.

I want to add a video background to a class called “header”, how would I do that?

To add a video background to a class called header add “.header” to the container field. (without the quotes)

The Video Background Pro fields are annoying, can I get rid of them?

You sure can! Simply go to the “Settings > Video Background” menu tab and check the “Hide Muted Pro Fields” checkbox.

Reviews

Fantastic support and plugin

I asked support and after one hour I had an answer.
I asked many things and they have solved everything.
Thank you to Mr Blake.
Tania 🙂

It just works. Amazing

I don’t know how he did it but this piece of code simply works. Video background can be seamlessly put in literally any class of the Theme you choose. Fantastic plugin.

Read all 47 reviews

Contributors & Developers

“Video Background” is open source software. The following people have contributed to this plugin.

Contributors

Translate “Video Background” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

2.6.3

  • Fixed: ability to display just fallback image.
  • Fixed: if fallback image is present, but video files are not. The video will not load to save on browser page size.

2.6.2

  • Added: version to wp_register_style()

2.6.1

  • Fixed: Critical issue with the [vidbg] shortcode not displaying video backgrounds.

2.6.0

  • Fixed: Compatibility issue with IOS 11 and High Sierra
  • Added: Reengineered vidbg scripts for more consistency across websites and faster loading speeds
  • Added: All instances of Video Background are now ran straight from the shortcode for more consistency.
  • Fixed: Compatibility issues in the opacity slider
  • Added: WordPress required version is now 4.2

2.5.8

  • Fixed: Conditionally enqueue vidbg script

2.5.7

  • Added ability to filter the post types using “vidbg_post_types” filter.

2.5.6

  • Fixed compatibility issues with other CMB2 instances

2.5.5

  • Fixed notice issue when hide muted fields checkbox was checked

2.5.4

  • Fixed a bug that made the browser position jump when clicking the “Advanced Options” button
  • Added better localization support for translations
  • Cleaner code, well documented.
  • Added Muted Video Background Pro fields (Do not worry, you can hide these)
  • Added new stable tag for WP 4.5.3

2.5.3

  • Fixed notice option

2.5.2

  • Added fade in/out transitions on advanced panel
  • Simplified/cleaned up a lot of code
  • Added security
  • Some small but helpful new styles
  • Update admin notice for new pro version

2.5.1

  • Added “Follow me on Twitter” button
  • Added premium notice message for those on WP 4.2 or greater
  • updated language file

2.5.0

  • Added Overlay Color
  • Added Overlay Alpha
  • Added ability to upload video files through wordpress media
  • Safer metaboxes
  • Added localization for translations in the future
  • added text domain and languages folder
  • Cleaned up source files
  • Integrated with CMB2
  • Added donate link
  • Updated stable tag

2.4.1

  • Removed those pesky php notices on blog page when no front page was set and WP_DEBUG was true
  • Updated tested up to tag

2.4.0

  • Now stable for WordPress 4.4
  • Modified links to new URL
  • Now using official version of vidbg.js from github.
  • Added shortcode attributes for unmute, overlay, and loop.

2.3.0

  • Changed position value when container is set to “body” from “absolute” to “fixed”
  • Dissolved pattern image and upgraded to data uri svg
  • Cleaned up and optimized code

2.2.3

  • Fixed typo in settings submenu

2.2.2

  • Fixed blurred circle play button bug on iOS 9

2.2.1

  • Cleaned up code
  • Added donate link

2.2.0

  • Fixed notices on 404 page when debug mode is set to true
  • Fixed blog posts page video background.

2.1.4

  • Added toggle loop
  • Added toggle mute
  • Added advanced section toggle
  • Got rid of the getting started row in the metabox

2.1.3

  • Added last versions changelog
  • Added FAQ

2.1.2

  • updated links in readme.txt

2.1.1

  • Added FAQ
  • Added instructions on settings page
  • Cleaned up code
  • Changed plugin compatibility

2.1.0

  • Added overlay featured
  • Cleaned up code, added comments, etc.
  • Dissolved OGV featured, now use video background with only MP4 and WEBM.

2.0.1

  • Added page post type

2.0.0

  • Video Background: Now in a metabox! No longer do you have to worry about generating a shortcode.

1.0.6

  • Fixed path to js file

1.0.4

  • Getting Started/settings page added

1.0.3

  • ReadME update

1.0.2

  • ReadME update

1.0.1

  • Updated Assets
  • Updated Readme

1.0

  • Initial Release