Hi all,
Hope you are doing well.
I need different title on the collection page and product page like below.
The above is displaying. but inside the product page i want like below.
Thanks in advance.
A user wants to display different product titles on collection pages versus product pages in the Dawn theme.
Current situation:
Proposed solutions:
Metafields approach: Use product metafields to store an alternate title for collection pages, displaying the metafield value on collections and the actual product title on product pages.
HTML/CSS method: Wrap part of the product title in <span> tags (e.g., <span>TENCELtm </span>Comfort skirt), then use custom CSS in base.css or another stylesheet to hide the span on collection pages:
.product-card-wrapper span { display: block; font-size: 11px; }
Both solutions require custom code modifications. The metafields approach offers more flexibility for managing different titles per product.
Hi all,
Hope you are doing well.
I need different title on the collection page and product page like below.
The above is displaying. but inside the product page i want like below.
Thanks in advance.
Hello @IndujaAIKY
we can do this by using of metafields of product so if product’s metafield contains value that will show on collection page as title and on product page we will show actual product title so in this way we can show different titles for different pages for product.
Hi @IndujaAIKY
Follow this
ex title is : TENCELtm Comfort skirt
then add it like TENCELtm Comfort skirt
.template-product .cd_span{display: block; font-size: 11px;}
NOTE: other way you can manage it by metafield. for that need custom code.
Best regard