Hi guys,
How to hide custom content section, desktop view only!
Thank you
Hello @Alliance
Sorry, I couldn’t find the custom module you’re trying to edit on the home page.
Can you double-check that you have hidden it? or send me a more detailed picture of where that module is on the page?
Kind & Best regards,
GemPages Support Team
I hideded it. Try now
You got it!
Hello @Alliance
You can follow these steps:
This code can show section on desktop and hide it on small version.
I hope the above is useful to you.
Kind & Best regards,
GemPages Support Team
Hi @Alliance
Please follow these steps:
@media only screen and (max-width: 800px) {
#shopify-section-edf565e2-3c1a-480e-808e-9f94b1f2a075 {
display: none !important;
}
}
I hope that it will work for you.
Must be visible on moibe view only, thats what I meant by “Hiden on Desktop only” with an option to show it back when required.
Thank you
Hi @Alliance
Sorry, I misunderstood your question. You can change the code to the following to hide the display on the desktop:
@media screen and (min-width: 769px) {
#shopify-section-edf565e2-3c1a-480e-808e-9f94b1f2a075 {
display: none !important;
}
}
I hope this is the standard screen width you want to display on mobile.