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!
Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025Expand into selling wholesale with Shopify Academy’s learning path, B2B on Shopify: Lau...
By Shopify Jan 28, 2025