• As you can see I currently have a youtube video autoplaying in the hero banner on the front page of my site. It works fine on desktop, but annoyingly, youtube autoplay doesn’t work on mobile for privacy reasons. I’ve tried linking a Vimeo version, but it doesn’t seem to work in the theme I currently have selected…

    Basically, I want to get the video autoplaying on mobile but have ran out of ideas. Any suggestions?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @jhners ,
    you can try checking mute option available in the video element being used if that works. or you can try replacing element with custom html element and add video inside video tag as per below code.

    <video autoplay loop muted> <source src="{video_url}" type="video/mp4"></video>

    Thanks

    Thread Starter jhners

    (@jhners)

    Thanks for getting back to me Harsh.

    Apologies, my knowledge of html is very limited! I’ve created most of the site using a combination of the theme editor & elementor. If I were to make amendments to the video element, whereabouts in wordpress would allow me access to make these changes? Would it be in the stylesheet/ theme files?

    I appreciate your help!

    It is just that we have to add “muted” attribute to video tag because due to privacy reasons, browser doesn’t allow to play video in mobile devices. but
    It may require to check how the video is added and getting rendered. so quite difficult to guess without having look at the settings or element. still you can follow the documentation guide provided by theme support.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Video Hero Query’ is closed to new replies.