Shopify themes, liquid, logos, and UX
Hello @Stephen567
While you mentioned not being experienced with coding, this might be the most effective solution. You can add CSS styles to your iframe to control its behaviour on mobile devices.
Here's a basic example:
/* Add this to your Shopify theme's CSS file */ iframe[src*="youtube.com"] { width: 100%; /* Make the iframe full width on mobile */ height: auto; /* Maintain aspect ratio */ }
This code will make the YouTube iframe occupy the full width of the mobile screen and adjust its height accordingly to maintain the video's aspect ratio.
OR
Shopify might offer built-in video embed features or apps that handle responsive video embedding more effectively. Check your Shopify admin for options related to video embeds.
OR
Explore Shopify App Store
Thank you. I have no idea with code and CSS (whatever it really is) to be honest. Can you please be specific with what I need to do. I'm not sure if when you say CSS you mean I add this text to the existing text in the custom liquid box. Maybe you can copy the code I shared and integrate your suggestion so I paste the whole thing to ensure it's in the right place? Appreciate the help, thank you.
We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024The Hydrogen Visual Editor is now available to merchants in Shopify Editions | Summer '...
By JasonH Sep 2, 2024