Skip to content

  • Home
  • About Us
  • Add-ons
  • Services
    • Shopify Development Services
    • Shopify Maintenance services
    • Shopify PageSpeed Optimization
    • Shopify Training
    • Shopify App Development
    • Shopify App Integration Services
    • Shopify Email Marketing
    • Shopify Web Design Agency
  • Blog
  • Contact Us
  • Search button

Add Different Slideshow For Mobile

Jul 19, 2022Nov 16, 2022
Different slideshow on Shopify

We’ve developed Shopify slideshow for mobile feature in the Debut theme and used the existing Slick slider. So we’ll walk through this tutorial expecting you’re using Debut theme. If you’re not using Debut then we have a different solution for that. We’ll discuss that after the Debut theme tutorial.

Editing your theme code to add Add different slideshow for mobile feature

  • In the Section directory, Create a new section with a name whatever you want but we named it specific-device-slideshow.liquid and add the code from here, basically, we’ve copied the slideshow.liquid section and modify that.
  • If you’re still using old version of Debut theme which is using SCSS instead of CSS then go to the Assets directory, open theme.scss.liquid or the file which is responsible for SCSS styles and add the following code at the very bottom of the file:
.multi-slideshow-wrapper{

    .desktop-image{
      @media screen and (max-width: $grid-medium - 1) {
        display:none;
      }
    }
    .mobile-image{
      @media screen and (min-width: $grid-medium) {
        display:none;
      }
    }
}
  • As Debut theme is not supporting SCSS anymore, you can add Shopify slideshow for mobile the following code to the bottom of Assets>theme.css file:
@media (max-width:749px){
  .multi-slideshow-wrapper .desktop-image{
      display:none;
  }
}
@media (min-width:750px){
  .multi-slideshow-wrapper .mobile-image{
      display:none;
  }
}

  • Congrats you’ve completed the coding part. Now it’s available in the Themes>Customize>add section> Multi device Slideshow. Now you can add two images, one for the big device and another for small devices
Different slideshow on Shopify

Now we’ll walkthrough for a different theme

  • In the Layout directory, open the theme.liquid and find the ending </head> tag and add the following slick slider cdn right above the </head> tag:
https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.9.0/slick.js
https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.9.0/slick.min.js
  • Asset directory, open the theme.scss.liquid and add the following code at the bottom of the file from here here or you can add CSS CDN from here. If you want to use the CDN then you have to Shopify slideshow for mobile put the CDN link to the Layout>theme.liquid file before the </head> tag.
  • In the Sections directory, create a new file and name it whatever you want and add the following code from here.
  • Congrats you’ve completed the coding part. Now it’s available in the Themes>Customize>add section> Multi device Shopify slideshow for mobile. Now you can add two images, one for the big device and another for small devices

Enjoy this feature and Integrate this on your Store 🙂

Posted in Shopify Tutorials

Post navigation

Prev Add a customization form to products
Next Add The Ability To Stop Purchase

2 thoughts on “Add Different Slideshow For Mobile”

  1. Frederic says:
    May 1, 2021 at 3:36 pm

    Hi,
    I´ve successfully added the “specific-device-slideshow.liquid” in the “Sections” of the Debut theme. The section “Multi Device Slideshow” can be selected in the Theme Editor and I can add the “Big device image” and “Small device image” just as in the screenshot above.

    But after saving any desktop browser up to 4K resolution only displays the small device image. Any idea how I can debug or fix this?

    Thanks!

    Reply
    1. Shopify Developer says:
      May 1, 2021 at 5:33 pm

      You’re missing the CSS Styles.

      @media (max-width:749px){
      .multi-slideshow-wrapper .desktop-image{
      display:none;
      }
      }
      @media (min-width:750px){
      .multi-slideshow-wrapper .mobile-image{
      display:none;
      }
      }

      Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Latest Posts

  • Shopify vs Squarespace: Which Is Best for Your Business in 2023?
    Shopify vs Squarespace: Which Is Best for Your Business in 2023?Jan 23, 2023
  • Shopify Hydrogen and Oxygen Supporting Shopify Storefront
    Discover Shopify Hydrogen and Shopify Oxygen: The Future of Shopify Storefront ShopifyJan 19, 2023
  • Magento To Shopify Migration – A Detailed Guide
    Magento To Shopify Migration – A Detailed GuideJan 16, 2023
  • How to use Shopify API Integrations with other tools or platforms?
    How To Use Shopify Api to Build Custom Integrations With Other Tools Or Platform?Jan 7, 2023

Subscribe Now

Follow Us

  • facebook
  • twitter
  • instagram
  • linkedin2

OriginateWeb.com is the realization of a dream. Our founder previously spent several years working for a large website development company.

Quick Links

  • Shopify Services
  • About Us
  • Shopify Theme Add-ons
  • Blog
  • Contact Us
  • Careers

Services

  • Shopify Theme Add-ons
  • Website Development
  • Page Speed Optimization
  • App Development
  • Maintenance
  • Training

Need Help?

  • Licensing Agreement
  • Terms and Conditions
  • Privacy Policy
  • Sitemap
  • facebook
  • twitter
  • instagram
  • linkedin2

© 2023 Originate Web. All Rights Reserved