Slideshow on mobile!

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!

1 Like

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? :check_mark: 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?

:confused:

How to Add This to Shopify Craft Theme:

  1. Go to Shopify Admin → Online Store → Themes.
  2. Click ā€œCustomizeā€ on your Craft theme.
  3. In the theme editor, go to ā€œTheme settingsā€ (bottom left).
  4. Scroll down and click ā€œCustom CSSā€.
  5. Paste the above CSS code and save changes.

Alternative (Edit Theme CSS Directly):

  1. Go to ā€œOnline Storeā€ → ā€œThemesā€.
  2. Click ā€œActionsā€ → ā€œEdit codeā€.
  3. Open base.css inside the assets folder.
  4. Paste the CSS at the bottom and Save.

I’m using the Craft theme!

Sorry i have updated the theme name. The process is same

Hey @Leeloo

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 tag


RESULT:

If I managed to help you then, don’t forget to Like it and Mark it as Solution!

Best Regards,
Moeed

1 Like

Hi @Leeloo

You can do that by adding this code to Custom CSS of your Slideshow

@media (max-width: 749px) {
.slideshow__media { height: 55rem; }
}