Background Videos

Hello everyone! I am trying to make a background video from a YouTube link start at 0:09 seconds instead of 0:00, and I’ve tried doing every method to make this work by copying the link of the video to make it start at that time, but for some reason Shopify won’t register the start time and it still starts at 0. Does anyone have any way to make a YouTube link video start at a specific time? Thanks!

@seanja5

HI, you can try this,

  • go to YouTube video
  • click the share button below, then select embed
  • in the embed code, add the ?start=9 parameter
  • replace video Id with the actual video ID from your YouTube link
  • then apply into your Shopify theme eg, liquid.editor
<iframe width="560" height="315" src="https://www.youtube.com/embed/VIDEO_ID?start=9" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen="">
</iframe>

hope this works well

I’m at the part where I’ve added the ?start=9 parameter, but now I’m not sure which video ID to replace with the new one. I’ve already tried replacing the link in Shopify with the new ?start=9 at the end of the link, but that didn’t work. Where do I add this code? theme.liquid?

Heya,

Here is the full YouTube player reference: https://developers.google.com/youtube/player_parameters. It clearly explains which parameters you can use with it.

If you’re having trouble making it work on a Shopify theme, why don’t you edit your video on your local computer and upload the new version to YouTube instead?