Have your say in Community Polls: What was/is your greatest motivation to start your own business?

Hide Collection in Collage on Mobile View

Solved

Hide Collection in Collage on Mobile View

Challen
Tourist
5 0 1

Hey I'm looking to hide the "Classic Lion Collection" in the collage of my home page on mobile view, and keep it visible there on desktop view. My website is https://www.leosworldwide.com. Thanks for any help!

Accepted Solution (1)
PageFly-Kate
Shopify Partner
1313 368 401

This is an accepted solution.

You can try this code 😁:

@media screen and (max-width: 749px){

.collage__item.collage__item--collection.collage__item--right {
    display: none;
}

.section-template--17961074164028__collage-padding >.collage--mobile {
    grid-template-columns: repeat(1,minmax(0,0fr));
}
}

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


Unlock the secrets to a record-breaking BFCM with PageFly and Canva


➜ Optimize your Shopify store with PageFly Page Builder (Free plan available)


➜ Weekly updated Shopify tutorials on YouTube


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


View solution in original post

Replies 7 (7)

PageFly-Kate
Shopify Partner
1313 368 401

Hi @Challen ,

This is Kate from PageFly - Landing page builder, I’d like to suggest this idea:
Step 1: Go to Online Store->Theme->Edit code
Step 2: Asset->/collage.css->paste below code at the bottom of the file:

@media screen and (max-width: 749px){

.collage__item.collage__item--product.collage__item--right {
    display: none;
}
.collage--mobile {
    grid-template-columns: repeat(1,minmax(0,1fr));
}
}

Hope my answer will help you.

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


Unlock the secrets to a record-breaking BFCM with PageFly and Canva


➜ Optimize your Shopify store with PageFly Page Builder (Free plan available)


➜ Weekly updated Shopify tutorials on YouTube


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


Challen
Tourist
5 0 1

That hid the wrong item in the collage. I need to hide the other one please.

PageFly-Kate
Shopify Partner
1313 368 401

Sorry for misunderstanding

Please remove the code in my previous answer and replace it with the code below:

@media screen and (max-width: 749px){
.collage__item.collage__item--collection.collage__item--right {
    display: none;
}
.collage--mobile {
    grid-template-columns: repeat(1,minmax(0,0fr));
}
}

 

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


Unlock the secrets to a record-breaking BFCM with PageFly and Canva


➜ Optimize your Shopify store with PageFly Page Builder (Free plan available)


➜ Weekly updated Shopify tutorials on YouTube


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


Challen
Tourist
5 0 1

That worked for the top collage how I wanted it too, but it also unfortunately removed the second image in the second collage on my home page. Can you get that image back? It's the bottom collage with the black/white pictures of the girls. It should have three images.

PageFly-Kate
Shopify Partner
1313 368 401

This is an accepted solution.

You can try this code 😁:

@media screen and (max-width: 749px){

.collage__item.collage__item--collection.collage__item--right {
    display: none;
}

.section-template--17961074164028__collage-padding >.collage--mobile {
    grid-template-columns: repeat(1,minmax(0,0fr));
}
}

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


Unlock the secrets to a record-breaking BFCM with PageFly and Canva


➜ Optimize your Shopify store with PageFly Page Builder (Free plan available)


➜ Weekly updated Shopify tutorials on YouTube


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


Challen
Tourist
5 0 1

That worked perfectly, thank you!!

hgfgfg
Visitor
1 0 0

hi kate, im trying to remove the image collage how would that be done? ie i only want the image collage to show in deskptop, not in mobile view