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
No Comments

Post A Comment