All things Shopify and commerce
Hi all,
I have copied and pasted code from other posts and it has not worked for my banner. As you can see, the desktop view looks nice but as soon as it is switched to mobile view, it is cut off.
How can I make the image resize so it looks good on mobile view?
I don't see them appearing on your website at the moment. Have you made it public yet?
If our suggestions are useful, please let us know by giving it a like or marking it as a solution.
Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)
Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page
yes, can you see it now?
some of the image for some reason has been cut off at the top and bottom, it doesn't look like that when I'm editing
- Here is the solution for you @bond2you
- Please follow these steps:
- Then find the base.css file.
- Then add the following code at the end of the file and press 'Save' to save it.
.slideshow__slide .slideshow__media img {
height: auto !important;
}
.slideshow__slide .slideshow__media {
height: 220px !important;
}
- Here is the result you will achieve:
- Please press 'Like' and mark it as 'Solution' if you find it helpful. Thank you.
If our suggestions are useful, please let us know by giving it a like or marking it as a solution.
Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)
Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page
Hi it's still not looking right, the desktop view is now looking cut off
@media screen and (max-width: 749px) {
.slideshow__slide .slideshow__media img {
height: auto !important;
}
.slideshow__slide .slideshow__media {
height: 220px !important;
}
}
can you try it @bond2you
If our suggestions are useful, please let us know by giving it a like or marking it as a solution.
Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)
Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page
Please replace the old code with the new code above @bond2you
If our suggestions are useful, please let us know by giving it a like or marking it as a solution.
Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)
Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page
It still didn't work
You added a missing } in line 3574 @bond2you
If our suggestions are useful, please let us know by giving it a like or marking it as a solution.
Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)
Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page
sorry, tell me what I need to remove?
You need to add a } above the line @media screen and (max-width: 749px) {
Same as the image I sent above
If our suggestions are useful, please let us know by giving it a like or marking it as a solution.
Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)
Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page
I think it worked! There is a blank white space underneath but I think I can live with that.
Also, this desktop which I think is a separate issue. Do you know how to fix it to make it look like the second image as I see it when editing?
@bond2you can you add more code
@media screen and (min-width: 749px) {
#Slide-template--22839493755190__slideshow_HLayiA-1 {
height: 768px !important;
}
}
If our suggestions are useful, please let us know by giving it a like or marking it as a solution.
Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)
Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page
great, I think it worked!
but how do I get rid of this white spacing that is in mobile view between the header and next section?
@media screen and (max-width: 749px) {
.banner--mobile-bottom:not(.banner--stacked) .banner__box.color-scheme-1 {
display: none !important;
}
}
- You can add more code
If our suggestions are useful, please let us know by giving it a like or marking it as a solution.
Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)
Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page
omg thank you so much!
No problem. Have a good day @bond2you .
- Please press 'Like' and mark it as 'Solution' if you find it helpful. Thank you.
If our suggestions are useful, please let us know by giving it a like or marking it as a solution.
Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)
Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page
Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025