Hi!
I would like to move text to second line in product title. So it will look like product title on the right. Spaces don’t work. Do you have any idea how to fix it?
Goal: break a product title into two lines in Shopify’s Dawn theme; adding spaces didn’t work. An image (screenshot) illustrates the desired layout and is central to understanding the request.
Proposed fix: edit snippets/card-product.liquid and replace the default title output with a version that uses Liquid’s replace filter to insert an HTML line break (
) at a specific pattern. Concretely, it replaces a double quote followed by a space with a double quote plus
, causing a line break at that point.
Notes: Liquid is Shopify’s templating language;
creates a new line in HTML. The suggested pattern ('" ') means the break only occurs where that exact sequence exists in the title.
Next steps: another participant requested the store URL (and password if applicable) to review and propose a tailored solution.
Status: not yet resolved; pending testing or store access.
Hi!
I would like to move text to second line in product title. So it will look like product title on the right. Spaces don’t work. Do you have any idea how to fix it?
Hi @AdrianS05
This is David at SalesHunterThemes.
Thank you for your question.
Do following:
Themes => edit code => snippets => card-product.liquid and replace the code
{{ card_product.title | escape }}
with this code:
{{ card_product.title | replace: '" ', ‘"
’ }}
Hi @AdrianS05 ,
Can you kindly share your store link (with the password, if any) with us? We will check it and suggest you a solution if possible.