Favicon for Shopify
How to add a favicon to Shopify
Shopify takes your favicon from one theme setting, so you only need one good square image. Generate it from your logo below, upload it, and optionally add an Apple Touch icon for iPhones.
Add the favicon in Shopify
- Upload files to
- Online Store → Themes → Customize → Theme settings → Favicon
- Add code to
- layout/theme.liquid
- Generate your kit and unzip it.
- In your Shopify admin open Online Store → Themes → Customize, then Theme settings → Favicon.
- Upload android-chrome-512x512.png. Shopify generates the sizes it serves from it, then save.
- Optional, for a sharper iOS home-screen icon: upload apple-touch-icon-180x180.png under Content → Files and add the tag below to the <head> of layout/theme.liquid.
layout/theme.liquid
<link rel="apple-touch-icon" sizes="180x180" href="{{ 'apple-touch-icon-180x180.png' | file_url }}">The file names match what the generator produces. Your theme colour and name are filled in when you generate your own kit.
Where Shopify gets the favicon from
On a Shopify store the favicon is a setting of the active theme, not of the store, which is why it can disappear when you publish a different theme. The theme's layout file prints the tag from that setting, and Shopify serves the resized image from its own CDN under cdn.shopify.com, with a version parameter that changes when you upload a new file.
The theme setting accepts one image, so you cannot add an SVG or an ICO through it. If you want an SVG favicon or a higher-quality Apple Touch icon, the supported route is theme code: put the file in the theme's assets folder and print the tag in layout/theme.liquid using the asset_url filter. Files uploaded under Content → Files work too and are referenced with file_url.
Remember that the checkout, customer accounts and the Shop app can be branded separately from the storefront. If your favicon is right on the product pages but wrong at checkout, change it in the checkout branding settings rather than in the theme.
layout/theme.liquid, inside <head>
<link rel="icon" href="{{ 'favicon.svg' | asset_url }}" type="image/svg+xml">
<link rel="apple-touch-icon" href="{{ 'apple-touch-icon-180x180.png' | asset_url }}">Add favicon.svg and the Apple Touch PNG to the theme's assets folder first. Keep the theme setting filled in so browsers still get a PNG.
Check it worked
- Open your storefront in a private window and view the page source. Search for rel="icon" to see which tags the theme prints.
- Visit a product page, the cart and the checkout, because they can show different icons.
- If you switched themes recently, re-upload the favicon in the new theme's settings.
Why your Shopify favicon may not show
- Use a square image. A wide logo gets squeezed or cropped in the tab, so use just the symbol or monogram.
- Your checkout can have its own favicon. Check the branding settings in checkout customization if the old icon still shows there.
- Shopify serves the icon from its CDN, so changes can lag. Hard-refresh and test in a private window before assuming it failed.
- Changing themes can reset the favicon, because it is a theme setting. Re-upload after you switch.
Already published? Run your site through the favicon checker to see exactly what is wrong, or see every favicon size for what each file is for.
Shopify favicon FAQ
Where do I upload a favicon in Shopify?
Online Store → Themes → Customize → Theme settings → Favicon. Upload a square image and save.
What size should a Shopify favicon be?
Square, and bigger than the 32 × 32 minimum. Upload the 512 × 512 PNG from the kit so it stays sharp on high-density screens.
Why does my Shopify favicon look blurry?
Usually the source was a wide logo or a tiny image scaled up. Use a simple square symbol and upload the 512 × 512 PNG instead of a 32 × 32 file.
Skip the resizing.
Drop in one logo and get every size, the manifest and the HTML for Shopify.
Open the favicon generator →