Jump to content

Lightbox resizing

Recommended Posts

Site URL: https://www.chandrastation.com/

PW:1234

I have been trying to resize my lightboxes for mobile and I am having trouble I referred to this post

that was made back in may of last year but it didnt solve my problem unless I didnt change something that I was supposed to. My issue is that the lightbox is super long and not wide enough. The code that I currently have I pasted below. Any help is really appreciated

//Lightbox resize for mobile

@media screen and (max-width:640px) {
.collection-type-products .lightbox-content {
    max-width: 350px !important;
}
}

 

Link to comment
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

On 3/24/2021 at 12:13 AM, Bcbellows said:

Site URL: https://www.chandrastation.com/

PW:1234

I have been trying to resize my lightboxes for mobile and I am having trouble I referred to this post

that was made back in may of last year but it didnt solve my problem unless I didnt change something that I was supposed to. My issue is that the lightbox is super long and not wide enough. The code that I currently have I pasted below. Any help is really appreciated


//Lightbox resize for mobile

@media screen and (max-width:640px) {
.collection-type-products .lightbox-content {
    max-width: 350px !important;
}
}

 

Your lightbox is a custom javascript plugin, try

@media (max-width: 767px) {
    html .c-lightbox__content {
      max-width: 95%;
  }
}

image.thumb.png.d7740bbcf7581516b18e5c83bbdffae1.png

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment

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.