Shopify themes, liquid, logos, and UX
Hello there,
Store link: https://thatshampooshop.com/
Is it possible to display different images for my slideshow banners on mobile and desktop view?
Reason being is that for desktop I want to utilise the whole banner space across the screen and place my text container on the left/right while for mobile, my main image would be centralised.
However, I am unable to do if the same image is being used for both mobile and desktop view.
Example
I want my mobile view to look like that:
I want my desktop view to look like this:
Solved! Go to the solution
This is an accepted solution.
Hey @thatshampooshop
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 (min-width: 768px) {
section#shopify-section-template--17529872515235__slideshow_cxxViQ {
display: none !important;
}
}
@media screen and (max-width: 767px) {
section#shopify-section-template--17529872515235__slideshow_4aFa3V {
display: none !important;
}
}
</style>
RESULT:
If I managed to help you then, don't forget to Like it and Mark it as Solution!
Best Regards,
Moeed
Hey @thatshampooshop
Can you add 2 sections and add desktop image in one and mobile image in another one and then I can provide you a code that will show images as per the device.
Best Regards,
Moeed
Hi Moeed,
I have added two sections to add desktop and mobile image but I'm seeing both on my homepage for desktop view now.
Thanks!
It seems like you have a code added in one of the Custom CSS of one section, can you remove that?
Best Regards,
Moeed
Ok, removed.
This is an accepted solution.
Hey @thatshampooshop
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 (min-width: 768px) {
section#shopify-section-template--17529872515235__slideshow_cxxViQ {
display: none !important;
}
}
@media screen and (max-width: 767px) {
section#shopify-section-template--17529872515235__slideshow_4aFa3V {
display: none !important;
}
}
</style>
RESULT:
If I managed to help you then, don't forget to Like it and Mark it as Solution!
Best Regards,
Moeed
You can create 2 slideshow sections, one for mobile and one for desktop then add customized CSS code to Custom CSS code for each section
- Mobile section:
@media (min-width: 750px) {
slideshow-component { display: none; }
}
- Desktop section
@media (max-width: 749px) {
slideshow-component { display: none; }
}
- Helpful? Like & Accept solution!
- Ryviu - Product Reviews & QA app: Import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Amazon Products Importer - Import Amazon Products to Dropship in Your Store!
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...Sign up now.
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025