Tagged: x
-
AuthorPosts
-
July 9, 2016 at 7:35 am #1079243
ludwigkempenaarParticipantHello,
I tried some options from related forum questions, but unfortunately I did not succeed fixing may problem 🙁
I want to use a fixed height for my Woocommerce product boxes (on summary pages). Now they differ from height, because of the amount of characters of the product name.
See example:
http://www.citroencarparts.com/winkel/page/7/Can you help me to fix this?
Regards,
LudwigJuly 9, 2016 at 7:48 am #1079256
ThaiModeratorHi There,
We can truncate the product title by using custom CSS, please add the following CSS under Customizer > Custom > Global CSS:
.woocommerce li.product .entry-header h3 a { max-width: 100%; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; display: block; }Hope it helps 🙂
July 9, 2016 at 8:26 am #1079279
ludwigkempenaarParticipantHello,
Ok, that is also a possibility. But if I want to use the full product title, can i set a fixed height of the box?
Gr
July 9, 2016 at 8:33 am #1079282
ludwigkempenaarParticipantHello Thai,
I added the Truncate CSS.. but nothing happens.
Gr
July 9, 2016 at 8:41 am #1079283
ThaiModeratorHi There,
I added the Truncate CSS.. but nothing happens.
You forgot to add the curly bracket(}) in your custom CSS, so the provided CSS will not work.
Ok, that is also a possibility. But if I want to use the full product title, can i set a fixed height of the box?
Please try with this CSS:
.woocommerce li.product .entry-wrap { min-height: 140px; }Hope it helps 🙂
July 10, 2016 at 6:45 am #1080087
ludwigkempenaarParticipantThat did the trick!
Thanks
July 10, 2016 at 6:47 am #1080090
ChristianModeratorYou’re welcome. 🙂
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1079243 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
