Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #390120

    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

    #390277

    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

    #390290

    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

    #390729

    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

    #390868

    Thanks Ismael that’s great.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Color section video background size’ is closed to new replies.