Hi,
im looking to make this section either a slider on mobile or hide the two bottom ones on mobile. My site is https://vazluxe.com
A user seeks to modify a section on their Shopify store (vazluxe.com) for mobile display, with two options: convert it to a slider or hide the bottom two elements.
Two solutions provided:
Slider implementation - Add custom code to theme.liquid file above the </body> tag. The solution includes markup code and shows a visual result of the slider functionality.
Hide elements - Use CSS media query targeting mobile screens (max-width: 767px) to hide specific elements using nth-child selectors. The code hides the 3rd and 4th box elements with display: none !important.
Both approaches require editing the theme code directly. The CSS solution is simpler but removes content, while the slider maintains all elements in a mobile-friendly format. No indication yet which solution the original poster chose or if either resolved their issue.
Hi,
im looking to make this section either a slider on mobile or hide the two bottom ones on mobile. My site is https://vazluxe.com
Hey @Luxurymrkt
Follow these Steps:
Go to Online Store
Edit Code
Find theme.liquid file
Add the following code in the bottom of the file above tag
RESULT:
If I managed to help you then, don’t forget to Like it and Mark it as Solution!
Best Regards,
Moeed
In your css some css hide other elements where nth-child(3) inside the nth-child (1) means first elements nth-child(2)means second. This way you can hide which element you like. I have given the CSS for you to hide 3rd and 4th
@media screen and (max-width: 767px) {
a.box:nth-child(3) {
display: none !important;
}
a.box:nth-child(4) {
display: none !important;
}
}