How to Change a Favicon in Shopify
Shopify builds storefront pages from Liquid themes, so a favicon is either a theme setting or a few lines in the layout file, plus the image files behind them. This guide covers both routes, the files each needs, and why a correct setup can still look broken because of caching.
Where the favicon lives in a Shopify theme
A Shopify theme renders pages from theme.liquid in the Layout folder of the code editor. Its <head> is where icon <link> tags belong. Some themes declare a favicon picker in their settings and print those tags for you; others leave the head alone. Find out which case you have first.
| Route | What it means in practice |
|---|---|
| Theme settings picker | Upload one square image in the visual editor; the theme writes the icon links. No code. |
| Link tags in theme.liquid | Edit the layout head yourself; you control formats, sizes and filenames. |
| An app from the app store | An extra dependency for a job the two methods above already cover. |
Method 1: use the theme settings picker
Open the theme editor and look under Theme settings for a Favicon or Site icon control. If it is there, upload a square image and save. The theme outputs the icon links from that one image, so you never touch code.
Keep the artwork plain: a solid background and one clear mark, since fine detail disappears at tab size. The favicon size guide lists what each dimension is for. If the control is absent, use the code method instead.
Method 2: add link tags in theme.liquid
Open the theme's Edit code view, find Layout → theme.liquid, and place the tags inside <head>. Reference files from Assets with the asset_url filter, which returns the CDN path. Read the existing head first and edit the block that is already there rather than adding a second, competing set of links.
<!-- Layout/theme.liquid, inside <head> -->
<link rel="icon" type="image/svg+xml"
href="{{ 'favicon.svg' | asset_url }}">
<link rel="icon" type="image/png" sizes="32x32"
href="{{ 'favicon-32.png' | asset_url }}">
<link rel="apple-touch-icon" sizes="180x180"
href="{{ 'apple-touch-icon.png' | asset_url }}">
<link rel="shortcut icon" href="{{ 'favicon.ico' | asset_url }}">
Reading a favicon from theme settings
If your theme already declares a favicon picker, read that image instead of hard-coding a filename. Wrap the tag in a blank check so it only prints when an image is set. Older themes use img_url and newer ones may use image_url; both return a CDN URL.
For the format trade-off, see ICO vs PNG. Build a matching set from one square image with the myfavicon generator, then upload it to Assets.
{% if settings.favicon != blank %}
<link rel="icon" type="image/png"
href="{{ settings.favicon | img_url: '32x32' }}">
{% endif %}
Which files to upload to Assets
Tags that point at a missing file produce a 404 in the Network tab, so upload the images before you save the layout. A practical set is one SVG, a small PNG for tabs, a larger PNG for home screen shortcuts, and a multi-size ICO fallback.
| File | Purpose |
|---|---|
| favicon.svg | Scales cleanly in browsers that support SVG icons. |
| favicon-32.png | A small raster icon for tabs and bookmarks. |
| apple-touch-icon.png | The iOS home screen image; avoid transparency. |
| favicon.ico | A conventional fallback that can hold several sizes. |
Why the icon does not refresh
This is usually caching rather than a broken file. Shopify serves theme assets from a CDN and browsers keep favicons for a long time. Change one thing at a time so you can see which layer is stale.
Verify the result
Read the rendered HTML instead of trusting the tab. The favicon checker inspects a live URL, and DevTools → Elements → head shows whether each link resolves. For a missing tag or a 404 path, see why a favicon is not showing.
For home screen and installable storefronts, see Apple touch icon, the web manifest and PWA icons. The general add-a-favicon guide and the WordPress guide follow the same verification steps on other stacks.
FAQ
No. A theme settings picker handles the common case, and a short block of link tags in theme.liquid handles the rest.
Caching is the usual cause. Try a private window, request the icon URL directly, then change the URL with a version query string or a new filename.
In the Assets folder of the code editor. Reference them with the asset_url filter so the tags point at the CDN path.
You should not treat it as a ranking factor. Its job is recognition: a tab, a bookmark and a home screen shortcut become identifiable.