Jump to content

How do I decrease the vertical padding between product variant buttons?

Go to solution Solved by Web_Solutions,

Recommended Posts

  • Solution
48 minutes ago, dipanjanpal said:

Hi, in my product details page, I see that there is a lot of vertical padding between the product variants buttons, and also between the top product variant and the price. (marked with red in the screenshot)

How do I decrease/adjust these width according my own preference? Thanks a lot in advance!

Product link - https://bluebird-tuba-waaw.squarespace.com/prints/p/coexistence 

image.png

Add these code on Custom CSS panel in Website Utilities Website Tools > Custom CSS.

.view-item .product-price {
    margin-bottom: 0 !important;
}
.view-item .variant-option, .view-item .ProductItem-product-price {
    margin-bottom: 20px !important;
}

 

Screenshot_421.png

If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks

MD Rofik
Website Designer and Digital Marketer

Am I helpful? Want to offer me a coffee?
Send me a message if needed any help. I'll try to reply as soon as possible.


 

Link to comment
14 minutes ago, dipanjanpal said:

Thank you so much @Web_Solutions, worked like a charm. 

Can you also help me out with one more thing? In mobile view, the vertical products I have are not filling the entire screen. How do I fix this? 

Link https://bluebird-tuba-waaw.squarespace.com/prints

image.thumb.png.9cc2491da1a6bf7c970a18e7d81c8be6.png

Its for your image sizing. You should use the same size image. If you add code then it will look like the attached image. Is it ok?

Screenshot_422.png

If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks

MD Rofik
Website Designer and Digital Marketer

Am I helpful? Want to offer me a coffee?
Send me a message if needed any help. I'll try to reply as soon as possible.


 

Link to comment
20 minutes ago, Web_Solutions said:

Its for your image sizing. You should use the same size image. If you add code then it will look like the attached image. Is it ok?

I sell both horizontal and vertical prints so I can't have same size across all the products. 

Is there no way for it to look like this in the attached image? I have all the vertical images with a special tag so maybe there would be a way to fill width in mobile only for those tagged images? 

image.png

Link to comment
6 minutes ago, dipanjanpal said:

I sell both horizontal and vertical prints so I can't have same size across all the products. 

Is there no way for it to look like this in the attached image? I have all the vertical images with a special tag so maybe there would be a way to fill width in mobile only for those tagged images? 

image.png

There has two images. One image width is longer than height and one image width smaller than height. That is the problem.

Screenshot_423.png

If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks

MD Rofik
Website Designer and Digital Marketer

Am I helpful? Want to offer me a coffee?
Send me a message if needed any help. I'll try to reply as soon as possible.


 

Link to comment
6 hours ago, Web_Solutions said:

There has two images. One image width is longer than height and one image width smaller than height. That is the problem.

Screenshot_423.png

True, but I don't mind if the second image gets cropped a little bit. The second image is the preview of how the print will look like in someone's house. The first image is the product itself.

In ideal situation, I'd want the first image to fill width, and the second image to show with white bars on top and bottom, but I'm fine with the second image getting cropped a little bit for the first one to be portrait. Will that be possible?

Edited by dipanjanpal
Link to comment
9 minutes ago, dipanjanpal said:

True, but I don't mind if the second image gets cropped a little bit. The second image is the preview of how the print will look like in someone's house. The first image is the product itself.

In ideal situation, I'd want the first image to fill width, and the second image to show with white bars on top and bottom, but I'm fine with the second image getting cropped a little bit for the first one to be portrait. Will that be possible?

 

add this code on Custom CSS section.

@media screen and (max-width: 767px) {
    .view-list .grid-item .grid-image-wrapper {
        padding-bottom: 0 !important;
        height: auto !important;
    }
    .view-list .grid-item .grid-image-wrapper img:first-child {
        position: relative !important
    }
}

 

If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks

MD Rofik
Website Designer and Digital Marketer

Am I helpful? Want to offer me a coffee?
Send me a message if needed any help. I'll try to reply as soon as possible.


 

Link to comment
9 hours ago, Web_Solutions said:

 

add this code on Custom CSS section.

@media screen and (max-width: 767px) {
    .view-list .grid-item .grid-image-wrapper {
        padding-bottom: 0 !important;
        height: auto !important;
    }
    .view-list .grid-item .grid-image-wrapper img:first-child {
        position: relative !important
    }
}

 

Thank you so much! It worked flawlessly! 

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.