Hi
If you put an image in the background of a Color Section there are lots of options, for the sizing and placement, eg, stretch to fit, no repeat, centre centre, etc. But if you have a video in the background there are no options, it stretches to fill the whole screen by default. Is there any way to control the size of video backgrounds similar to the image backgrounds?
many thanks
Peter
Hi envapk2!
For that what you’ll want to do is instead of setting a video background drag our video element inside the color section to display it. You can use our column shortcodes as well if you want to have it display in the center, etc etc.
Best regards,
Elliott
Hi Elliott
The problem with that is that with the video element it isn’t possible to set the video to play automatically and hide player functions and lose audio, etc. Could that be done by adding a custom css class to the video element?
many thanks
Peter
Hey!
You can replace the theme’s default video shortcode with the wp video shortcode: http://codex.wordpress.org/Video_Shortcode
Place the shortcode on a code block:
[video src="http://www.youtube.com/watch?v=G0k3kHtyoqc" autoplay="on" width="900" height="400" loop="on"]
Remove the controls with this on Quick CSS:
.mejs-controls {
display: none !important;
}
Regards,
Ismael
Thanks Ismael that’s great.