Shopify themes, liquid, logos, and UX
I'm using a code in base.css to remove sections on dektsop and mobile and it has always worked until today. The first one works for hiding the section on dekstop but for some reason the second does not. Do you guys have any idea what might be causing this? I appreciate every help, thank you.
The code that I'm using (1st one works 2nd doesn't):
@media (min-width:768px) {
section#shopify-section-template--22666655236431__image_banner_whcdbA{
display: none !important;
@media (max-width:768px) {
section#shopify-section-template--22666655236431__slideshow_74accQ{
display: none !important;
Solved! Go to the solution
This is an accepted solution.
Hey @DylanRyan
Follow these Steps:
1) Go to Online Store
2) Edit Code
3) Find theme.liquid file
4) Add the following code in the bottom of the file above </body> tag
<style>
@media screen and (max-width: 767px) {
section#shopify-section-template--22666655236431__slideshow_74accQ {
display: none !important;
}
}
</style>
RESULT:
If I managed to help you then, don't forget to Like it and Mark it as Solution!
Best Regards,
Moeed
This is an accepted solution.
Here is the corrected code:
@media (min-width: 768px) {
section#shopify-section-template--22666655236431__image_banner_whcdbA {
display: none !important;
}
}
@media (max-width: 768px) {
section#shopify-section-template--22666655236431__slideshow_74accQ {
display: none !important;
}
}
This is an accepted solution.
Hey @DylanRyan
Follow these Steps:
1) Go to Online Store
2) Edit Code
3) Find theme.liquid file
4) Add the following code in the bottom of the file above </body> tag
<style>
@media screen and (max-width: 767px) {
section#shopify-section-template--22666655236431__slideshow_74accQ {
display: none !important;
}
}
</style>
RESULT:
If I managed to help you then, don't forget to Like it and Mark it as Solution!
Best Regards,
Moeed
Haven't checked yours but it probably works thank you
Thank you for your reply. I'm glad to hear that the solution worked well for you. If you require any more help, please don't hesitate to reach out. If you find this information useful, a Like would be greatly appreciated.
This is an accepted solution.
Here is the corrected code:
@media (min-width: 768px) {
section#shopify-section-template--22666655236431__image_banner_whcdbA {
display: none !important;
}
}
@media (max-width: 768px) {
section#shopify-section-template--22666655236431__slideshow_74accQ {
display: none !important;
}
}
It worked thank you so much
Hello @DylanRyan
Go to online store ---------> themes --------------> actions ------> edit code------->base.css
at the bottom of the file.
@media screen and (max-width: 767px) {
.slideshow__text-wrapper.banner__content.banner__content--middle-center.page-width.banner--desktop-transparent {
display: none !important;
}
}
and the result will be
If this was helpful, hit the like button and mark the job as completed.
Thanks
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