Solved – How to Shorten WooCommerce product titles – Limit Woocommerce product title

A very common issue: sometimes (mostly with affiliates online stores), WooCommerce product titles are way too long. On top of this, you may also want to keep the shop experience consistent, and make all the WooCommerce product titles of the same length. This is how you do it.

+ Option 1: (CSS): Limit all WooCommerce product titles to one line only

+ Option 2: (PHP): Limit all WooCommerce product titles to max number of words

+ Option 3: (PHP): Limit all WooCommerce product titles to max number of characters

8 Comments

  • Admin

    In Option 1, your website’s “class name” may be different. If you need help, let me know here

    • Oliver

      Hi!

      How do i find my websites class name?

      • Admin

        Give me the link to your website. I will check it for you

  • Marnix

    Great article! Thanks!

    Can you tell me how to choose the number of visible rows?

    • Admin

      Hi, You can select Option 2 or 3, then increase the number of words you want to display

  • Melody

    Hi. I am trying to use the CSS code for option 1 and I can’t seem to get it to work. I see that in your comment you said the class name would be different. Can you help?

    • Admin

      Give me the link to your website. I will check it for you

  • sreejith CP

    Hello, thank you for your code, but this code is not working for the related product title. I am using option 3

Leave a Reply

Your email address will not be published. Required fields are makes.