Shopify themes, liquid, logos, and UX
Hi,
how can I add a link to the header logo?
If someone cklicks it, he should be redirected to https://stein-experte.de/collections/all
kind regards
Karsten
Solved! Go to the solution
This is an accepted solution.
Your sections/header.liquid should have a line like this:
<a href="{{ routes.root_url }}" class="header__heading-link link link--text focus-inset">
similar to https://github.com/Shopify/dawn/blob/9.0.0-release-branch/sections/header.liquid#L439
change it to
<a href="{{ routes.all_products_collection_url }}" class="header__heading-link link link--text focus-inset">
I think you have to edit in code for this.
@kschulze
It can be done by editing theme code. Do let me know if you need assistance.
This is an accepted solution.
Your sections/header.liquid should have a line like this:
<a href="{{ routes.root_url }}" class="header__heading-link link link--text focus-inset">
similar to https://github.com/Shopify/dawn/blob/9.0.0-release-branch/sections/header.liquid#L439
change it to
<a href="{{ routes.all_products_collection_url }}" class="header__heading-link link link--text focus-inset">
Hello @kschulze
Find your header.liquid (or header section file) inside your Shopify theme.
Look for the logo code — it usually looks something like this:
{% if settings.logo %}
<img src="{{ settings.logo | img_url: 'medium' }}" alt="{{ shop.name }}">
{% endif %}
Wrap that img inside an <a> tag like this:
{% if settings.logo %}
<a href="https://stein-experte.de/collections/all">
<img src="{{ settings.logo | img_url: 'medium' }}" alt="{{ shop.name }}">
</a>
{% endif %}
Learn 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, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025