Shopify themes, liquid, logos, and UX
I'm trying to hide this one section – "Also available in this color" on mobile only. I've searched all similar posts but still can't figure it out...🤔
Thank you in advance!
https://4a3474-24.myshopify.com/collections/travel-umbrella/products/travel-umbrella-neon-pink
Hey @LindStuart,
Go to your theme's "Edit Code" Option, then in the search bar type "theme.liquid"
Below the tag "<head>" tag paste the following. Screenshot attached for reference.
<style>
@media only screen and (max-width: 989px) {
.lightly-spaced-row.lightish-spaced-row-above.not-in-quickbuy {
display: none !important;
}
}
</style>
Screenshot is for reference only, the correct code to paste is the one shown above.
Thank you so much! Question, though – is it possible to just hide this *specific* block? I may want to add the same type of block later and have that one show on mobile... if that makes sense.
Unfortunately not for this one, The way I see it, it doesn't have a unique ID, so it won't be possible to hide this specific block. There might be one way, but then you would have to hide it for every single product one by one and that's not very "future proof" code.
Btw, if you're only looking to hide it for this product only, then you can use this code. The instructions are the same as shown above.
<style>
@media only screen and (max-width: 989px) {
.product-form[data-product-id="9767988003119"] .lightly-spaced-row.lightish-spaced-row-above.not-in-quickbuy {
display: none;
}
}
</style>
ahh, got it – thank you for the help! maybe I can do it by collection...
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024