dipanjanpal Posted November 26, 2023 Posted November 26, 2023 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
Solution Web_Solutions Posted November 26, 2023 Solution Posted November 26, 2023 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 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; } dipanjanpal and Kobir 2 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.
dipanjanpal Posted November 26, 2023 Author Posted November 26, 2023 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
Web_Solutions Posted November 26, 2023 Posted November 26, 2023 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 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? Kobir 1 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.
dipanjanpal Posted November 26, 2023 Author Posted November 26, 2023 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?
Web_Solutions Posted November 26, 2023 Posted November 26, 2023 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? There has two images. One image width is longer than height and one image width smaller than height. That is the problem. Kobir 1 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.
dipanjanpal Posted November 27, 2023 Author Posted November 27, 2023 (edited) 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. 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 November 27, 2023 by dipanjanpal
Web_Solutions Posted November 27, 2023 Posted November 27, 2023 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 } } Kobir 1 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.
dipanjanpal Posted November 27, 2023 Author Posted November 27, 2023 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!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment