Unable to shorten product titles featured products preview or product list?

Highlighted
Shopify Partner
7 0 2

I have attempted multiple times to shorten the titles of the products listed on my store. The titles are really long and are not allowing the entire picture to be displayed. I only want it to preview a set amount of characters.

I have tried dropping in {{ product.title | truncate: 30 }} the truncate section of this into various parts of the coding but not working yet. I am using the Venture theme. Has anyone else had this issue and have a solution? Thanks.

0 Likes
Highlighted
Shopify Partner
7 0 2

after 3 hours I finally figured it out. FYI anyone dealing with the Venture theme. You have to go to the

"product-card.liquid" underneath assets. Find the title sections and insert "| escape | truncate: 25". The number being the amount of characters. I hope this helps. From what I see this question comes up a lot. 

2 Likes
Highlighted
New Member
1 0 0

Thanks a lot  

<div class="product-card__brand">{{ product.vendor }}</div>
{% endif %}

<div class="product-card__name">{{ product.title| escape | truncate: 25 }}</div>

<span class="shopify-product-reviews-badge" data-id="{{ product.id }}"></span>

0 Likes