myfavicon

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.

RouteWhat it means in practice
Theme settings pickerUpload one square image in the visual editor; the theme writes the icon links. No code.
Link tags in theme.liquidEdit the layout head yourself; you control formats, sizes and filenames.
An app from the app storeAn 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.

  • In the Shopify admin, open Online Store and find the theme you are editing.
  • Open Customize, then Theme settings, and find the Favicon or Site icon control.
  • Upload a square image with a solid background, then save the theme.
  • View the storefront source to confirm the icon links appear inside head.
  • 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.

    FilePurpose
    favicon.svgScales cleanly in browsers that support SVG icons.
    favicon-32.pngA small raster icon for tabs and bookmarks.
    apple-touch-icon.pngThe iOS home screen image; avoid transparency.
    favicon.icoA conventional fallback that can hold several sizes.
  • In Edit code, open the Assets folder and choose Add a new asset.
  • Upload each file with the exact filename used in your link tags.
  • Confirm every file appears in Assets, then save theme.liquid.
  • 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.

  • Open the storefront in a private window, or hard refresh with Ctrl+F5 or Cmd+Shift+R.
  • Request the icon URL directly and confirm it returns the new image and a 200 status.
  • Rename the asset or add a version query string so the URL itself changes.
  • In DevTools, check head for duplicate icon links and keep exactly one set.
  • 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

    Do I need an app to change the Shopify favicon?

    No. A theme settings picker handles the common case, and a short block of link tags in theme.liquid handles the rest.

    Why does the old icon still appear after I saved?

    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.

    Where should the favicon files go in a Shopify theme?

    In the Assets folder of the code editor. Reference them with the asset_url filter so the tags point at the CDN path.

    Will a favicon improve my store's search rankings?

    You should not treat it as a ranking factor. Its job is recognition: a tab, a bookmark and a home screen shortcut become identifiable.

    Make my favicon — free

    Related guides