Shopify themes, liquid, logos, and UX
I have added the following code to base.css so that on the home page on a desktop divice I can have three videos across the page using custom liquid in the themes editor. . See here: www.thedeliciousdogfoodcompany.co.uk
/* any screen equal to or wider than 750px */
@media only screen and (min-width: 750px) {
video {
max-width: 32.9% !important;
}
However, if I add a video to the product media it only comes 1/3 of the width of the product media which is too small.
Is there any easy way to have videos on a page 1/3 the page width and videos in the product media 100% width.
I have very limited coding experience so any help/advice would be greatly appreciated. Thanks
Solved! Go to the solution
This is an accepted solution.
Hi @TDDFC
This is Richard from PageFly - Shopify Page Builder App
You can replace your code with my code below to not apply the style for media video
/* any screen equal to or wider than 750px */
@media only screen and (min-width: 750px) {
video:not(.product video) {
max-width: 32.9% !important;
}
Hope this can help you solve the issue
Best regards,
Richard | PageFly
Please let me know if it works by giving it a Like or marking it as a solution!
➜ Optimize your Shopify store with PageFly Page Builder (Free plan available)
All features are available from Free plan. Live Chat Support is available 24/7.
This is an accepted solution.
Hi @TDDFC
This is Richard from PageFly - Shopify Page Builder App
You can replace your code with my code below to not apply the style for media video
/* any screen equal to or wider than 750px */
@media only screen and (min-width: 750px) {
video:not(.product video) {
max-width: 32.9% !important;
}
Hope this can help you solve the issue
Best regards,
Richard | PageFly
Please let me know if it works by giving it a Like or marking it as a solution!
➜ Optimize your Shopify store with PageFly Page Builder (Free plan available)
All features are available from Free plan. Live Chat Support is available 24/7.
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025