Shopify themes, liquid, logos, and UX
Hi again,
I am trying to keep the top video viewable on Desktop and the bottom video hidden.
On mobile I want the bottom video viewable only (this is currently the case because of the code provided to me)
I seemed to have this issue solved on a test page I was using thanks to some excellent code give to me here. Unfortunately the code must have been specific to that page because now I have a video displaying on another page I am trying to hide.
The page can be found here: https://bionicgym.com/pages/a10052024
That code I have placed in my theme.css is
@media screen and (max-width:767px){ main#MainContent .shopify-section.index-section--hero:first-child { display: none; } } @media screen and (min-width:768px){ main#MainContent .shopify-section.index-section--hero:last-child { display: none; } }
Thank you!
Solved! Go to the solution
This is an accepted solution.
Hi @WesQ , Let's try again with this code :
@media screen and (max-width:767px){
main#MainContent .shopify-section.index-section--hero:first-child {
display: none;
}
}
@media screen and (min-width:768px){
main#MainContent .shopify-section.index-section--hero:nth-child(2) {
display: none;
}
}
Hope this can help you
Kind regards,
HDL-Shin
This is an accepted solution.
Hi @WesQ , Let's try again with this code :
@media screen and (max-width:767px){
main#MainContent .shopify-section.index-section--hero:first-child {
display: none;
}
}
@media screen and (min-width:768px){
main#MainContent .shopify-section.index-section--hero:nth-child(2) {
display: none;
}
}
Hope this can help you
Kind regards,
HDL-Shin
Hi @WesQ
This is Henry from PageFly - Landing Page Builder App
You can try this code by following these steps:
Step 1: Go to Online Store->Theme->Edit code.
Step 2: Search file base.css
Step 3: Paste the below code at bottom of the file -> Save
div#shopify-section-template--16827474804928__hero_video_WhKfGw {
display: none;
}
@media (max-width: 767px){
div#shopify-section-template--16827474804928__hero_video_WhKfGw {
display: block !important;
}
}
Hope that my solution works for you.
Best regards,
Henry | PageFly
Please let me know if it works by giving it a Like or marking it as a solution!
PageFly - #1 Page Builder for Shopify merchants.
All features are available from Free plan. Live Chat Support is available 24/7.
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