Is there a way where we can have 2 slideshows one for phone and one for desktop separate?
I need my store to have a medium and phone to have small but its not possible i have no tech background would love help
my store is
softbeginnings.au
A store owner wants different slideshow banner sizes for desktop versus mobile devices but lacks technical experience to implement this.
Proposed Solutions:
Multiple users suggest creating two separate slideshow sectionsâone for desktop, one for mobileâthen using CSS or custom liquid code to hide each appropriately:
@media rules) to hide the desktop version on mobile (max-width: 749px) and the mobile version on desktop (min-width: 750px)Current Status:
The discussion remains unresolved. The original poster attempted one solution but reported it âdidnât workâ and is asking for clarification about code placement. Theyâve expressed confusion about implementation, indicating they need more detailed, step-by-step guidance for their specific theme setup.
Is there a way where we can have 2 slideshows one for phone and one for desktop separate?
I need my store to have a medium and phone to have small but its not possible i have no tech background would love help
my store is
softbeginnings.au
Hey @JGBowie ,
Yes, this is possible to have two slider for your website. One will be for the Desktop and one for Mobile.
For this you need to code two slider and one will be display none for mobile and other will be for the Disappeared on Desktop.
Let me know which type of slider you like the most so that I can provide code a Slider based on your reference.
Thanks
You can easily do this, if your theme has âCustom liquidâ/âCustom codeâ section.
Create and configure 2 sections â one for mobile and another for desktop
Add âCustom liquid sectionâ before each of them, so that they look like:
These codes will hide Mobile slideshow on Desktop and Desktop slideshow on Mobile.
They are universal and can be used with any type of content section â âImage bannerâ for example.
Yes I would love some help
I have no experience with this kind of stuff so im a bit lost
Sorry, bad wording from me â everything is done in theme Customize, instead of âCreate and configure 2 sectionsâ I shouldâve written âAdd and configureâ â you need to add 2 slideshow sections, then add 2 âcustom liquid sectionsâ, nothing complex.
Hi @JGBowie
You can add two slideshow sections to your store admin: Sales channels > Online Store > Themes > Customize. One will be used for desktop, and the other for mobile. Then add the following code to the Custom CSS of each section.
Add this code to the Custom CSS of the mobile section.
@media (min-width: 750px) {
.homepage-slideshow { display: none; }
}
Add this code to the Custom CSS of the desktop section.
@media (max-width: 749px) {
.homepage-slideshow { display: none; }
}
This didnt work
can i just throw the code in anywhere in that file?