Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Whenever I go to add a custom liquid section to my site and drag it to the spot on my website that I want it, once I click save, it will then delete/hide the other website sections below it. The page won't scroll down past the video. Can anyone review my code or point to what might be causing this? My store details are below:
Site: defisupps.com
Theme: Ride (v. 12.0.0)
Custom Liquid:
<style> .youtube-container { overflow: hidden; width: 90%; margin: 0 auto; aspect-ratio: 16/9; pointer-events: none; } .youtube-container iframe { width: 300%; height: 100%; margin-left: -100%; } @media screen and (max-width: 800px) { .youtube-container { width: 90%; } } </style> <div class='youtube-container'> <iframe width="560" height="315" src='https://www.youtube.com/embed/JWeKkRSZtBE?controls=0&showinfo=0&playsinline=1&autoplay=1&mute=1&loop=1&playlist=JWeKkRSZtBE'</iframe> </div>
Solved! Go to the solution
This is an accepted solution.
I found the issue.
Your code is missing ">" at the end of <iframe element.
Please update the code and check again.
<style>
#custom-yt {
overflow: hidden;
width: 90%;
margin: 0 auto;
aspect-ratio: 16/9;
pointer-events: none;
}
#custom-yt iframe {
width: 300%;
height: 100%;
margin-left: -100%;
}
@media screen and (max-width: 800px) {
#custom-yt {
width: 90%;
}
}
</style>
<div class='youtube-container' id="custom-yt">
<iframe width="560" height="315" src='https://www.youtube.com/embed/JWeKkRSZtBE?controls=0&showinfo=0&playsinline=1&autoplay=1&mute=1&loop=1&playlist=JWeKkRSZtBE'></iframe>
</div>
- Helpful? Like and Accept solution!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.
Hi @gopnik
Please try to update your code and check again
<style>
#custom-yt {
overflow: hidden;
width: 90%;
margin: 0 auto;
aspect-ratio: 16/9;
pointer-events: none;
}
#custom-yt iframe {
width: 300%;
height: 100%;
margin-left: -100%;
}
@media screen and (max-width: 800px) {
#custom-yt {
width: 90%;
}
}
</style>
<div class='youtube-container' id="custom-yt">
<iframe width="560" height="315" src='https://www.youtube.com/embed/JWeKkRSZtBE?controls=0&showinfo=0&playsinline=1&autoplay=1&mute=1&loop=1&playlist=JWeKkRSZtBE'</iframe>
</div>
- Helpful? Like and Accept solution!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.
Hi Dan,
I tried your code but I'm still having issues. Here is a preview of the problem:
https://1kh4dgyuxx8ygvnf-67338567962.shopifypreview.com
If you compare the original site (defisupps.com) to the preview, you'll see there should be featured products and more info below the video placement.
Thanks
Could you show me where did you add video section? Also, only "Let customers speak for us" is missing.
- Helpful? Like and Accept solution!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.
I'm trying to add it after the first section and right above the featured product section--so between sections 1 & 2. Try this preview: https://1kh4dgyuxx8ygvnf-67338567962.shopifypreview.com
This is an accepted solution.
I found the issue.
Your code is missing ">" at the end of <iframe element.
Please update the code and check again.
<style>
#custom-yt {
overflow: hidden;
width: 90%;
margin: 0 auto;
aspect-ratio: 16/9;
pointer-events: none;
}
#custom-yt iframe {
width: 300%;
height: 100%;
margin-left: -100%;
}
@media screen and (max-width: 800px) {
#custom-yt {
width: 90%;
}
}
</style>
<div class='youtube-container' id="custom-yt">
<iframe width="560" height="315" src='https://www.youtube.com/embed/JWeKkRSZtBE?controls=0&showinfo=0&playsinline=1&autoplay=1&mute=1&loop=1&playlist=JWeKkRSZtBE'></iframe>
</div>
- Helpful? Like and Accept solution!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.
Life saver! Thank you!
Glad I could help 😉
- Helpful? Like and Accept solution!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.
By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We 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, 2024