How to shorten product titles on Ride theme homepage?

Is there anyway to shorten the products title when on the homepage/frontpage as it takes too much space.

1 Like

Hello,

I wouldn’t recommend shortening product titles but you can technically do it like this

{{ product.title | truncate: 10 }}

or

{{ product.title | truncatewords: 5 }}

1 Like

Use this code

.product-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px; /* Adjust this value to your desired width */
}
1 Like

Hi @Tproduction ,

Would you mind to share your URL website with password if its protected? Thanks!

1 Like

where should I place this code?