Video on frontpage

Closed
autoRoyal - Automotive WordPress Theme autoRoyal - Automotive WordPress Theme February 20, 2020
Login to reply
Emil Knudsen
4 years ago

Perfect - when can you do it?

Alex Gurghis Support Agent
4 years ago

I will do with the extra filter job.

Emil Knudsen
4 years ago

Thanks! 😍

Alex Gurghis Support Agent
4 years ago

Ok, sure

Emil Knudsen
4 years ago

I've tried this, but it dosn't help.
Can you help?

Alex Gurghis Support Agent
4 years ago

Hi,

You can add a new block with visual composer that has an image as background and in block responsive settings make it show only on mobile and for video block make it show only on desktop.

Regards,

Alex

Emil Knudsen
4 years ago

?

Emil Knudsen
4 years ago

Hello Alex,

Sorry, i don't understand. How can i make it, so the video shows on desktop, but a picture shows on mobile?

Alex Gurghis Support Agent
4 years ago

Hi Emil,

You can add a background image and delete the css code that I sent you earlier that shows the video on mobile. In this case it will hide the video and will show the image.

Kind Regards,

Alex

Emil Knudsen
4 years ago

Can you tell me how?

Alex Gurghis Support Agent
4 years ago

Yes, it is possible.

Emil Knudsen
4 years ago

Okay, can i then differentiate it, so it will show video on desktop and a picture on small screens?

Alex Gurghis Support Agent
4 years ago

Hey Emil,

It can't be done. For various reasons (including, but not limited to data usage), Apple doesn't allow auto-playing of videos.

Alex Gurghis Support Agent
4 years ago

Yes, absolutely. I will make it.

Emil Knudsen
4 years ago

Can you help here?

Emil Knudsen
4 years ago

I've put in the code and the video now shows on the frontpage, but only as a picture. It doesn't play?


www.clevrcar.dk

Alex Gurghis Support Agent
4 years ago

Hi Emil,

The video background in Visual Composer is disabled on small screen (mobile view).

You can try to add this css underneath in Appearance -> Customize -> Additional CSS field:

@media (max-width: 767px) {
        .vc_video-bg-container .vc_hidden-xs { display: block !important; }
}

Kind Regards,

Alex

Emil Knudsen
4 years ago

www.clevrcar.dk

Alex Gurghis Support Agent
4 years ago

I will need a link to test it out.

Emil Knudsen
4 years ago

I've inserted a video, but it only works on computer. On phone it is just a blank space. What can i do?

Alex Gurghis Support Agent
4 years ago

Yes, you can do it. It is possible with Visual Composer.

Kind Regards,

Alex

Emil Knudsen
4 years ago

Hello,

Is it posible to insert a video on the frontpage instead of the hero picture?