All things Shopify and commerce
Our favicon used to show but it hasn't been showing for a while now. I followed some advice on other discussions and pasted the below in the href of the favicon code in theme.liquid:
<link rel="shortcut icon" href="" type="image/png" />
I also made sure my favicon image I uploaded to the site was 96x96 and png.
Favicon is currently still not showing on our site: https://www.twentytwoshop.com/
Any suggestions?
Hi @Chris_Whalley. Wrong value in href attribute.
Upload your icon to assets folder. In theme code add such part (instead of current):
<link rel="shortcut icon" href="{{ 'your-file-name.png' | asset_url }}" type="image/png">
If I managed to help you then, don't forget to Like it and Mark it as Solution!
Thanks. How do I upload to assets folder?
Thanks just done that. This is what the coding currently looks like - is this correct?
Did you get this fixed? I just fixed mine with the below code:
{%- if settings.favicon != blank -%}
<link rel="icon" type="image/png" href="{{ settings.favicon | image_url: width: 32, height: 32 }}">
{%- endif -%}
Just go into your theme.liquid code, search "favicon", delete old code and replace with the above. Worked like a charm for me!
Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024The Hydrogen Visual Editor is now available to merchants in Shopify Editions | Summer '...
By JasonH Sep 2, 2024Note: Customizing your CSS requires some familiarity with CSS and HTML. Before you cust...
By JasonH Aug 12, 2024