Tagged: x
-
AuthorPosts
-
June 6, 2016 at 8:27 am #1027968
John FParticipantHey All,
Great theme and my site is almost perfect, I’d appreciate your help with my store images. I would like all of them images to have a similar sized box, I know that the images may be slightly different in size, but at least it will look clean. See attached for example from my old site prior to upgrading to X for what I’m looking for. Thanks!
June 6, 2016 at 8:29 am #1027973
John FParticipantThis reply has been marked as private.June 6, 2016 at 9:49 am #1028103
ThaiModeratorHi There,
Please add the following CSS under Customizer > Custom > Global CSS:
.woocommerce li.product .entry-featured img { min-width: auto; max-height: 170px; width: auto; margin: 0 auto; }Hope it helps 🙂
June 6, 2016 at 9:53 am #1028110
John FParticipantThanks Thai, I put in the CSS and it definitely looks better. Is there a way to make it slightly larger? I like the look of 300px, but then things aren’t aligned. Thoughts?
Thanks!
June 6, 2016 at 12:11 pm #1028365
JoaoModeratorHi John,
If you want the images to have more height and be aligned at the same time I would reccomend you re-uploading all the images with the same size with the desired proportions and than you can play with the value from 170px to 300px, and it would be maybe even uncessary any CSS to have them aligned.
I have done a few tests and with the images you have there the solution that Thai gave you seems to be the optimal solution.
Hope that helps,
Joao
June 6, 2016 at 3:37 pm #1028657
John FParticipantHey Joao, is there anyway to get it closer to the uploaded example I gave from my last theme? The images were the same size as they are now, but larger and looked cleaner.
I feel like there should be a way through CSS to do this…
Thanks!
June 7, 2016 at 12:16 am #1029310
LelyModeratorHe John,
There’s a way in CSS to make it aligned and 300px in height, but that is not advisable because the images will be stretch and blurry. Your images width and height proportion differs from each other. For other images, to achieve 300px height means that it needs more width of the container. The best option is to upload new images as suggested by the Joao. Since the image maximum width will depend on it’s container, we cannot adjust it’s height. Because forcing to adjust the height without adjusting it’s container width will result to stretch image.
Hope this helps.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1027968 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
