Jump to content

Recommended Posts

Hi there

I'm trying to display both portrait and landscape photos in my portfolio but for some reason I can't understand, Squarespace only allows one type of aspect ratio.  They suggested a custom code to allow it.

can someone help me with it?

thanks!

www.stahldesign.group

Link to comment
  • Replies 1
  • Views 111
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

1 hour ago, Beccascope said:

Hi there

I'm trying to display both portrait and landscape photos in my portfolio but for some reason I can't understand, Squarespace only allows one type of aspect ratio.  They suggested a custom code to allow it.

can someone help me with it?

thanks!

www.stahldesign.group

We can consider using the style padding-bottom to

section[data-section-id="668028b9aae1c07a7eddb799"] .grid-image-inner-wrapper:has(img[data-image-dimensions="448x336"]),
section[data-section-id="668028b9aae1c07a7eddb799"] .grid-image-inner-wrapper:has(img[data-image-dimensions="1300x1002"]),
section[data-section-id="668028b9aae1c07a7eddb799"] .grid-image-inner-wrapper:has(img[data-image-dimensions="1119x721"])
{
    padding-bottom: 75%;
}

 

Press 👍  or mark my comment as solution if you find my sharing useful

🆒 Squarespace pinchzoom lightbox plugin (affiliate link)

👁‍🗨 360 degree photo viewer (affiliate link)

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.