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.
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024