Shopify themes, liquid, logos, and UX
Is there a way in the Minimal theme to remove the company logo's link to the homepage? I want to test out some new product concepts, but I don't want those pages to offer any link to the homepage or main catalogue.
You need to find the logo code and put condition around it to ignore certain pages by whatever convention you use.
Similar posts for find the relevant spot in code:
After you find the logo you would wrap it with something like one of the following
{%- unless product.tags contains '_no-header-logo-link' %}
{%- comment -%}... logo code{%- endcomment -%}
{%- endunless -%}
{%- comment -%} Using alternative template named product.landing.liquid{%- endcomment -%}
{%- unless template.suffix == 'landing' %}
{%- comment -%}... logo code{%- endcomment -%}
{%- endunless -%}
The starting _underscore is in case you need to customize your theme further to try and prevent certain tags from showing to customer in tag filters, examples on the forums.
The above could also be instead wrappedaround CSS that hides the logo visually, such as in this post
To have no exits or excess use such as for bringing in full html from a page designer use {% layout none %} at the top of an alternate template applied to that template
https://shopify.dev/api/liquid/tags/theme-tags#layout
https://shopify.dev/themes/architecture/templates#alternate-templates
Though that means no theme.liquid so no header elements no app script injection etc.
Merchants that need to buy this customization can contact me at paull.newton+shopifyforums@gmail.com with topic url, and store url.
Save time & money ,Ask Questions The Smart Way
Confused? Busy? Get the solution you need paull.newton+shopifyforum@gmail.com
Problem Solved? ✔Accept and Like solutions to help future merchants
Answers powered by coffee Buy Paul a ☕ Coffee for more answers or donate to eff.org
In the Shopify "Minimal" theme, you can remove the link from the company logo to the homepage by editing the theme's code in the header section. Look for the code that wraps the logo image in an anchor tag ('<a>') and remove that tag. Then, save your changes in the theme editor.
Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024Digital marketers and app developers have tracked activity in apps and websites for yea...
By Ollie Mar 13, 2024February was an exciting month with Shopify Editions, informative webinars, and more! F...
By JasonH Mar 7, 2024