Solved

How To Hide Sections On Home Page For Mobile (Dawn Theme)

MMast
Explorer
131 0 10

Thanks in advance!

I am looking to hide all of my collection images except for the first two images only for mobile on the home page. Example shown below.

How my site looks:

Screenshot 2024-04-16 145013.png

How I would like my site to look:

Screenshot 2024-04-16 145220.png

Accepted Solution (1)

PageFly-Richard
Shopify Partner
4287 973 1626

This is an accepted solution.

Hi @MMast 

 

This is Richard from PageFly - Shopify Page Builder App

 

Please add this code to your theme.liquid above the </head> to get this solved

Step 1: Online Stores > Themes > More Actions > Edit code

Step 2: click on theme.liquid and paste the code above the </head>

<style>
@media (max-width: 767px) {
ul#Slider-template--22102499590454__featured_collection > li:not(li:first-child):not(li:nth-child(2)) {
    display: none;
}
}
</style>

PageFlyRichard_0-1713316948342.png

 

Hope this can help you solve the issue 

 

Best regards,

Richard | PageFly

Please let me know if it works by giving it a Like or marking it as a solution!


PageFly - #1 Page Builder for Shopify merchants.


All features are available from Free plan. Live Chat Support is available 24/7.

View solution in original post

Reply 1 (1)

PageFly-Richard
Shopify Partner
4287 973 1626

This is an accepted solution.

Hi @MMast 

 

This is Richard from PageFly - Shopify Page Builder App

 

Please add this code to your theme.liquid above the </head> to get this solved

Step 1: Online Stores > Themes > More Actions > Edit code

Step 2: click on theme.liquid and paste the code above the </head>

<style>
@media (max-width: 767px) {
ul#Slider-template--22102499590454__featured_collection > li:not(li:first-child):not(li:nth-child(2)) {
    display: none;
}
}
</style>

PageFlyRichard_0-1713316948342.png

 

Hope this can help you solve the issue 

 

Best regards,

Richard | PageFly

Please let me know if it works by giving it a Like or marking it as a solution!


PageFly - #1 Page Builder for Shopify merchants.


All features are available from Free plan. Live Chat Support is available 24/7.