Make section slider on mobile or hide

Make section slider on mobile or hide

Luxurymrkt
Globetrotter
761 2 161

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

 

A774366D-78AB-4A40-9097-F6639DE1B89F.jpeg

Thank You | mike
Replies 2 (2)

Moeed
Shopify Partner
7381 1997 2439

Hey @Luxurymrkt 

 

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) {
a.box:nth-child(3) {
    display: none !important;
}
a.box:nth-child(4) {
    display: none !important;
}
}
</style>

RESULT:

Moeed_0-1742318014954.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


Arif_Shopidevs
Shopify Partner
521 44 93

@Luxurymrkt 

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;
    }
}

Syncora: Backup & Restore [Free] - Automated real-time store backup with one-click easy restore.
Slider Revolution - Create sliders, theme sections, banners, videos, pages, advanced animation, and social feeds.
Essential Grid Gallery - Create photo galleries, video galleries, portfolio galleries, product gallery, collection gallery, and more.
EasyDisplay: Product Showcase - Easily display collections, related products, discounts, recently viewed items, and best sellers.