How can I add a favicon to my Craft theme?

My Craft theme doesn’t allow fevicon option. How can i incorporate it?

Hello @Sahilaneja

To add a favicon to your Shopify Craft theme, you can follow these steps:

  1. Prepare your favicon:

    • Create a favicon image in .ico, .png, or .svg format. The recommended size for favicons is 32x32 pixels.
    • Ensure the favicon is named and saved as “favicon.ico” (for .ico format) or “favicon.png” (for .png format).
  2. Log in to your Shopify admin panel.

  3. Click on “Online Store” and then select “Themes.”

  4. Locate the current active Craft theme and click on the “Actions” button.

  5. Select “Edit Code” from the drop-down menu. This will take you to the theme’s code editor.

  6. In the code editor, find the “Layout” folder and open the “theme.liquid” file.

  7. Look for the section in the code.

  8. Within the section, add the following line of code to reference your favicon file:

    liquid.


Replace ‘favicon.ico’ with the appropriate filename if you’re using a different format or file name.

Hi @Sahilaneja

I hope you are doing good and welcome to the Shopify Community!
I am San from MS Web Designer.

You can follow this article To Add Fevicon To My Craft Theme:

https://tiny-img.com/blog/add-favicon-shopify-store/

Regards,

San

This worked perfectly! Thank you so much