Hi there.
I have the Craft theme.
Is there a way to change the height of the slideshow on the mobile only? So it is more portrait than landscape!?
Thanks in advance!
Hi there.
I have the Craft theme.
Is there a way to change the height of the slideshow on the mobile only? So it is more portrait than landscape!?
Thanks in advance!
hi @Leeloo
You can adjust the slideshow height on mobile using CSS. By adding a media query, you can set a different height for smaller screens to make it more portrait-oriented.
Hereās an example of the CSS you can use:
@media (max-width: 768px) {
.slideshow-class {
height: 80vh !important; /* Adjust the height as needed */
}
}
Replace .slideshow-class with the actual class used for your slideshow in the Craft theme. If youāre unsure where to apply this, Iād be happy to guide you through the process!
can you show the screen shot, it will help us to give the correct soluiton
Problem Solved?
Accept and Like solution to help future merchants.
Thank you. If you could let me know exactly where I place this that would be great? Also not sure what you mean by āactual classā for my slideshow?
![]()
How to Add This to Shopify Craft Theme:
Alternative (Edit Theme CSS Directly):
Iām using the Craft theme!
Sorry i have updated the theme name. The process is same
Hey @Leeloo
Follow these Steps:
Go to Online Store
Edit Code
Find theme.liquid file
Add the following code in the bottom of the file above tag
RESULT:
If I managed to help you then, donāt forget to Like it and Mark it as Solution!
Best Regards,
Moeed
Hi @Leeloo
You can do that by adding this code to Custom CSS of your Slideshow
@media (max-width: 749px) {
.slideshow__media { height: 55rem; }
}