Shopify themes, liquid, logos, and UX
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
In the Collection list, the products are displayed. How can I change the product name to the collection name of that product in Shopify Dawn theme? Please help me with the above case. Thanks
Solved! Go to the solution
This is an accepted solution.
I have found the solution, now I would like to share with the shopify dev community, just change in card-product.liquid the card_product.title part to card_product.type
<h3
class="card__heading{% if card_product.featured_media or settings.card_style == 'standard' %} h5{% endif %}"
{% if card_product.featured_media or settings.card_style == 'card' %}
id="title-{{ section_id }}-{{ card_product.id }}"
{% endif %}
>
<a
href="{{ card_product.url | within: collection_object }}"
id="CardLink-{{ section_id }}-{{ card_product.id }}"
class="full-unstyled-link"
aria-labelledby="CardLink-{{ section_id }}-{{ card_product.id }} Badge-{{ section_id }}-{{ card_product.id }}"
style="font-size: 18px; color: #70707B;"
>
{% comment %} {{ card_product.title | escape }} {% endcomment %}
{{ card_product.type | escape }}
</a>
</h3>
Hi @kay2573,
kindly provide your store URL please and if it is password protected, please share the password as well.Thanks
Hello @kay2573
Welcome to the Shopify Community! Please share your store URL and password (if it’s password-protected), so I can check and provide you with the exact solution
This is an accepted solution.
I have found the solution, now I would like to share with the shopify dev community, just change in card-product.liquid the card_product.title part to card_product.type
<h3
class="card__heading{% if card_product.featured_media or settings.card_style == 'standard' %} h5{% endif %}"
{% if card_product.featured_media or settings.card_style == 'card' %}
id="title-{{ section_id }}-{{ card_product.id }}"
{% endif %}
>
<a
href="{{ card_product.url | within: collection_object }}"
id="CardLink-{{ section_id }}-{{ card_product.id }}"
class="full-unstyled-link"
aria-labelledby="CardLink-{{ section_id }}-{{ card_product.id }} Badge-{{ section_id }}-{{ card_product.id }}"
style="font-size: 18px; color: #70707B;"
>
{% comment %} {{ card_product.title | escape }} {% endcomment %}
{{ card_product.type | escape }}
</a>
</h3>