Shopify themes, liquid, logos, and UX
Hi there,
I would like to link the title and image of my product "Peeling Handschuh" on my website www.taneraskin.com to the page https://taneraskin.com/products/peeling-handschuh .
In this section: So that when you click on the title or image, it leads you to the product.
What code do I have to add and where?
Thank you for your help.
Best regards,
Isabelle
For this purpose you need to customize the theme files like featured-product.liquid like something i did below.
Online Store > Theme Edit > Edit Code > Section > featured-product.liquid
{%- when 'title' -%}
<h2 class="product__title {{ block.settings.heading_size }}" {{ block.shopify_attributes }}>
{%- if product.title != blank -%}
{{ product.title | escape }}
{%- else -%}
{{ 'onboarding.product_title' | t }}
{%- endif -%}
</h2>
////////////////to this
{%- when 'title' -%}
<h2 class="product__title {{ block.settings.heading_size }}" {{ block.shopify_attributes }}>
<a href="{{ product.url}}">
{%- if product.title != blank -%}
{{ product.title | escape }}
{%- else -%}
{{ 'onboarding.product_title' | t }}
{%- endif -%}
</a>
</h2>
Hi there,
I tried it but it doesn't work... It just makes the product title disappear...
please add again and let me know i will figure it out.
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025