How to Shorten WooCommerce product titles

How to Shorten WooCommerce product titles

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.

 

The issue: WooCommerce product titles are too long – let’s set a character length limit on the shop page

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

 

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

 

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

 

Thanks to Rodolfo Melogli for the great post

Md. Elias
elias1435@gmail.com
2 Comments
  • Everest
    Posted at 01:57h, 07 April Reply

    Trying to use the CSS but keep getting an error at the begginning.

    • Md. Elias
      Posted at 15:23h, 08 April Reply

      Hello,
      Thanks for your comment. Is this fix your issue?

      Thanks

Post A Comment