Favicon not displaying on a Shopify storefront after previously working. The current theme.liquid tag had an empty href, preventing the icon from loading.
Key points and guidance:
Root cause identified as an incorrect href value in the favicon tag. The icon must be hosted and referenced correctly.
Recommended fix: upload the favicon file to the theme’s Assets folder and update the theme.liquid to point to that file (via the Assets URL) or use the theme setting.
An alternative solution shared: use the theme setting (settings.favicon) and output a PNG favicon with Shopify’s image_url filter at 32×32 px inside a conditional, replacing the old code. A member reported this worked for them.
Artifacts central to the thread:
Screenshots showing how to upload to the Assets folder and a snippet view of the updated code.
Status:
The original poster confirmed uploading the favicon to Assets and asked if their updated code is correct, but did not confirm the final result.
A working snippet was provided by another member; resolution for the original poster remains unconfirmed.
Summarized with AI on December 20.
AI used: gpt-5.
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:
I also made sure my favicon image I uploaded to the site was 96x96 and png.