Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1079243
    ludwigkempenaar
    Participant

    Hello,

    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,
    Ludwig

    #1079256
    Thai
    Moderator

    Hi 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 🙂

    #1079279
    ludwigkempenaar
    Participant

    Hello,

    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

    #1079282
    ludwigkempenaar
    Participant

    Hello Thai,

    I added the Truncate CSS.. but nothing happens.

    Gr

    #1079283
    Thai
    Moderator

    Hi 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 🙂

    #1080087
    ludwigkempenaar
    Participant

    That did the trick!

    Thanks

    #1080090
    Christian
    Moderator

    You’re welcome. 🙂

  • <script> jQuery(function($){ $("#no-reply-1079243 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>