Jump to content

Making product image fill entire page

Recommended Posts

Hi,

I'm trying to change the images on the product page to fill up the entirety of the left side of the screen. Currently have tried code below but not working too well. I'm experience in CSS but unfamiliar with the structure and classification of Squarespace templates and product pages. 

section#pdp {
    padding-top: 0px !important;
    margin-top: 0px !important;
}

.pdp-gallery-slides-image{
	padding-top: 0px !important;
}

Images below are for the current site and then the ideal change:

Site: https://perch-grey-p6zw.squarespace.com/

PW: hmmm

 

Screenshot 2024-06-06 at 3.01.04 PM.png

Screenshot 2024-06-06 at 3.01.13 PM.png

Link to comment
3 hours ago, tyshi said:

Hi,

I'm trying to change the images on the product page to fill up the entirety of the left side of the screen. Currently have tried code below but not working too well. I'm experience in CSS but unfamiliar with the structure and classification of Squarespace templates and product pages. 

section#pdp {
    padding-top: 0px !important;
    margin-top: 0px !important;
}

.pdp-gallery-slides-image{
	padding-top: 0px !important;
}

Images below are for the current site and then the ideal change:

Site: https://perch-grey-p6zw.squarespace.com/

PW: hmmm

 

Screenshot 2024-06-06 at 3.01.04 PM.png

Screenshot 2024-06-06 at 3.01.13 PM.png

You can try the following code

.products.collection-content-wrapper.product-layout-side-by-side {
  padding-left: 0;
}

[id*='item'] .sections section:first-child {
  padding-top: 0 !important;
}

/*overwrite old style*/
@media screen and (min-width: 768px) {
    [id*='item'] .ProductItem-nav {
        padding-bottom: 0;
    }
}

My testing

image.thumb.png.59ad5829cae6eb80e233c6338c1fda68.png

Let me know how it works on your site

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment
On 6/6/2024 at 6:12 PM, Beyondspace said:

You can try the following code

.products.collection-content-wrapper.product-layout-side-by-side {
  padding-left: 0;
}

[id*='item'] .sections section:first-child {
  padding-top: 0 !important;
}

/*overwrite old style*/
@media screen and (min-width: 768px) {
    [id*='item'] .ProductItem-nav {
        padding-bottom: 0;
    }
}

My testing

image.thumb.png.59ad5829cae6eb80e233c6338c1fda68.png

Let me know how it works on your site

It works really well except I have this problem later down the page with the padding of the text sections:

Also, would I be able to make the navigation bar sticky on top while the page scrolls?

Thank you for the help!

 

 

 

Screenshot 2024-06-10 at 4.29.28 PM.png

Edited by tyshi
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.