Shopify themes, liquid, logos, and UX
How to hide Shopify section on Desktop & Mobile Devices?
How would I hide a custom liquid section on mobile and desktop devices? I need one section for mobile devices and one section for desktop devices, reason being image adjustment.
Image on Mobile device needs to be custom compared to desktop and I just want to have 2 separate liquids.
Hi @Brian-A ,
For this you can custom CSS. You can follow below steps to show/hide sections on different device.
Step 1: Go to the section you want to show/hide.
Step 2: Add below code on custom CSS.
To hide on mobile, add bellow css:
@media only screen and (max-width: 768px) {
*{
display: none;
}
}
To hide on desktio, add bellow css:
@media only screen and (min-width: 769px) {
*{
display: none;
}
}
If you require further help to optimize your store, please don’t hesitate to reach out. If you find this information useful, a Like would be greatly appreciated. And if this solves the problem, please Mark it as Solution!
Best Regards,
Makka
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