Goal: Limit product title length on collection pages using Shopify’s Liquid truncate filter (shortens text to a set number of characters).
Theme-specific guidance:
Superstore: Edit snippets/product-grid-item.liquid. Replace {{ product.title }} with {{ product.title | truncate: 30 }} (30 can be adjusted).
Dawn: Edit snippets/card-product.liquid. Use {{ card_product.title | truncate: 30 }}. Screenshots were shared to illustrate.
Debut: A user confirmed the truncate approach works.
Refresh: A user reported the above doesn’t work and asked for a theme-specific solution (no answer yet).
Other points:
The original poster shared their store URL. Multiple responders requested collaborator access; the poster asked how to enable it, but no instructions were provided in-thread.
One long code snippet from card-product was posted as reference; images/screenshots were supplementary, not essential to understand the fix.
Status: Partially resolved with theme-dependent solutions (Superstore, Dawn, Debut). Open questions remain for the Refresh theme and how to grant collaborator access.
I’ve been trying to fix this with the help of older posts. But i’m not sure how to properly change this. I am using Superstore theme, which contains a bit of different coding.
I am Ani From https://www.task4store.com/ - Shopify Small & Custom Tasks Experts ( By MS Web Designer - Top Rated Shopify Certified Experts and eCommerce Consultant from Singapore )
I will love to help you with your concern.
It would be difficult to give you the exact solution without checking the backend code.
Can we get backend access to your store? if you want we can continue the conversation via DM or personal chat.
{%- if card_product and card_product != empty -%}
{%- liquid
assign ratio = 1
if card_product.featured_media and media_aspect_ratio == ‘portrait’
assign ratio = 0.8
elsif card_product.featured_media and media_aspect_ratio == ‘adapt’
assign ratio = card_product.featured_media.aspect_ratio
endif
if ratio == 0 or ratio == nil
assign ratio = 1
endif
-%}