Can you remove homepage links from the company logo in Minimal theme?

epicmischief
Visitor
1 0 0

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.

Replies 2 (2)

PaulNewton
Shopify Partner
6274 573 1319

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:

https://community.shopify.com/c/forums/searchpage/tab/message?advanced=false&allow_punctuation=true&... 

 

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

https://community.shopify.com/c/technical-q-a/removing-header-logo-for-product-pages-on-mobile-minim... 

 

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


afrasiab
Visitor
1 0 0

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.