Jump to content

Different Gallery types for Desktop and Mobile

Go to solution Solved by Marya,

Recommended Posts

Posted

@fstone

The easiest way to achieve this is set up both galleries and then use CSS to hide one gallery depending on the screen size. If you set them up, I can take a look at your site and send the code over! Just make sure to share your site pw 🙂

  • Solution
Posted

@fstone Here's a sample of code you can use to add for the other bodies of work on your site. This is for Personal > Friends specifically.

@media screen and (max-width: 640px) {
    section[data-section-id="66ce3733f867976ea58abdcc"] {
        display: none!important;
    }//desktop gallery
}//hide on mobile
@media screen and (min-width: 641px) {
    section[data-section-id="6702ea6a582bf305b6f183a3"] {
        display: none!important
    }//mobile gallery
}//hide on desktop

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.