Shopify themes, liquid, logos, and UX
Hello there,
I am trying to make the height of this video smaller for desktop and remain the same for mobile.
This page: https://obadiahcoffee.com/pages/holiday-shop
Thank you.
1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file
3. In theme.liquid, paste the below code before </head>
#video#video-template--16291418767514__full_width_video_LC6QtU{
width: 100%;
height: 70vh;
object-fit: cover;
}
Thanks!
Use it, instead of this code
@media (min-width: 769px){
#video#video-template--16291418767514__full_width_video_LC6QtU{
width: 100%;
height: 70vh;
object-fit: cover;
}
}
Thanks!
That isn't working for me sorry.
Do you have code for the Custom CSS on the page, to effect desktop only? @steve_michael2
Hi, @andrew72
Try this one
@media (min-width: 769px){
#video#video-template--16291418767514__full_width_video_LC6QtU{
width: 100% !important;
height: 70vh !important;
object-fit: cover !important;
}
}
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025