Learn how to Add a Favicon in Squarespace
Did you know that adding a favicon to your Squarespace website can significantly enhance your brand's visibility and professionalism, even in the humble, yet important, browser tab? This small, yet mighty icon does wonders for creating a cohesive online presence and can dramatically improve user experience.
A favicon, short for 'favorite icon,' is a small icon associated with a website that appears in the address bar, on browser tab, and next to the site's name in a user's bookmarks. So, it's not only crucial for your website's visual appeal, but it's also an essential part of creating a seamless user journey.
Understanding Favicon Sizes and Formats
Before you embark on adding a favicon to your Squarespace site, there are some technical aspects you should acquaint yourself with. Favicons are essentially small graphic images, typically in .png or .ico format, that come in several sizes—16x16, 32x32, 48x48, 64x64, 96x96, 128x128, 192x192, 512x512 pixels, and up.
However, for Squarespace, the most important sizes are 512px square, 144px wide, and 180px square. The 512px favicon will be used for Android and iOS home screens, the 144px favicon will be used for iOS Safari browser tabs, and the 180px favicon is used for the app manifest and Pinterest pin description.
Preparing Your Favicon
Before you can add a favicon to your Squarespace site, it's essential to prepare and optimize your image. You might need to modify the size, compress it to enhance load times, and ensure it fits the desired aspect ratio.
There are numerous tools online that can help you create and optimize your favicon. Squarespace itself recommends using realfavicongenerator.net or similar tools that can generate multiple sizes of your favicon for you.
Designing Your Favicon
Your favicon should be a simple yet impactful representation of your brand. Keep in mind that it will be viewed at incredibly small sizes, so it needs to be easily recognizable and distinctive even at those tiny dimensions.
Your favicon could be a simplistic version of your logo or a stylized letter from your brand's name. Whatever you choose, make sure it still represents your brand and is easily identifiable.
Adding a Favicon to Squarespace
Now that you've successfully prepared and designed your favicon, it's time to add it to your Squarespace website. The process is relatively straightforward and involves a few simple steps.
First, navigate to your Squarespace site's settings, then select 'Domain Manager,' your domain, then 'Advanced.' Click on 'Favicon' to upload your favicon. Alternatively, you can also upload your favicon via the 'Appearance' > 'Custom CSS' editor and use the following code:
link[rel="icon"][type="image/png"][href^="http://" Manifest={jsonUrl}]
Where http:// should be replaced with your actual site URL.
Uploading Your 512px Favicon
Start by uploading your 512px favicon to your website. Go to 'Settings' > 'Domain Manager' > your domain. Click on 'Advanced' and under 'Favicon,' click 'Browse' to select your 512px favicon file.
Press 'Save' to confirm your new favicon. Squarespace will generate smaller versions of your favicon, which you do not need to upload manually.
Adding Your 144px and 180px Favicon
Next, upload your 144px and 180px favicon using custom code. Go to 'Appearance' > 'Custom CSS,' then, under the 'Custom CSS' box, paste the following code:
<link rel="apple-touch-icon" sizes="144x144" href="{favicon144Url}">
Replace {favicon144Url} with the URL of your 144px favicon. Repeat this process for your 180px favicon (replace 144x144 with 180x180 and accordingly change the URL in {faviconUrl}).
Secondly, add a manifest.json file to your website's root directory. You can create this file using Squarespace's 'Custom Code Injector' tool. Include the following code:
{"icons": [{ "src": "{favicon180Url}", "sizes": "180x180", "type": "image/png"}]}
Remember, you should replace {favicon180Url} with the URL of your 180px favicon.
Finally, save all your changes. It can take a few minutes for the changes to reflect on your live website. Depending on your browser, you might need to manually clear your cache to see the changes.
Once you've successfully added your favicon to your Squarespace site, it will start working its magic, enhancing your brand's visibility and providing a seamless user experience. So why not give it a try today?