How do I make my embedded YouTube, Vimeo video responsive?

If you use code provided by Youtube or Vimeo, when inserted them into your articles, your pages in Shopify, The videos will not responsive for mobile or tablet.

This article will help you make your Vimeo video or Youtube video responsive.

responsive video embed youtube vimeo

The first, you need add bellow code for CSS

OK. Now you need open the files have the code for retrieve content and replace


The code example above is for article in blog. If you use for pages or description (collections, products) you replace article.content with page.content, product.description or collection.description.

Done! Good luck for you!

Huynh Mai Anh Kiet

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

Limited Offer : 50% OFF for 2 months all paid plans Start Free
50% OFF 🎁