Hello Timba,
First thanks for using our Sydney Pro theme!
Unfortunately is not possible have a youtube video with autoplay enabled. This is a browser behavior, that do not allow autoplay videos with sound. The only way is having a play button. My suggestion for you is disable the default sydney video option and then use hooks to add an Youtube iframe. For it please follow the steps below:
- First disable the Sydney default video. Go to Appearance > Customize > Header Area > Header Type > Front page header type and check the options No header (only menu)
- Go to Appearance > Customize > Hooks > Header > After hero and add the given code below in the box:
<div id="youtube-player"></div>
<script>
if( document.querySelector('.home') ) {
var iframe = document.createElement('iframe');
iframe.src = 'https://www.youtube.com/embed/0U_wsNAyGPI?autoplay=0&controls=0&showinfo=1&modestbranding=1&loop=0&fs=0&cc_load_policy=0&iv_load_policy=3&autohide=1&rel=0&enablejsapi=1&origin=http%3A%2F%2Flocalhost&widgetid=1';
iframe.width = '100%';
iframe.height = 900;
iframe.frameborder = 0;
iframe.allowfullscreen = 1;
iframe.allow = 'accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture';
document.querySelector('#youtube-player').appendChild(iframe);
}
</script>
3.Go to Appearance > Customize > Additional CSS and add the given custom CSS code below:
.header-clone {
height: 0 !important;
}
This will create the same video as before (with default Sydney options), but now without autoplay, with the play button and with sound.
We hope this helps!
Kind Regards,
Rodrigo,
aThemes Support