zesty.io

Products

Developers

Learn

More

How to add an Emoji Favicon to your Website with Zesty.io

Stuart Runyan

April 2021

Lea Verou had a genius tweet/solution on using an Emoji for a website favicon. 

Using this SVG technique is super quick to do on a Zesty instance by creating an instance level head tag.

  1. Sign into your Zesty.io zesty.io instance. e.g. https://8-f48cf3a682-7fthvk.manager.zesty.io/ (This is one of ours, your url will have a different unique id)

  2. Head to your instances settings and click on Head Tags. Your url should look like https://8-f48cf3a682-7fthvk.manager.zesty.io/settings/head

  3. Click the "Create Head Tag" button. This will add a new head tag card to your list of instance head tags.

  4. Select "Link" as your head tag type.
    adding-a-custom-head-tag-link-zesty.png

  5. Remove the pre-populated attributes of as, type and media. This is done by hovering that field to reveal the "Trash" icon to the right. These are automatically added because link head tags are commonly used for stylesheets. We will not need them for a favicon.

  6. Change the "rel" attribute value from "preload" to "icon". This tells browsers to treat the href as an icon.

  7. In the "href" attribute "Value" field put in this exact svg data string.

data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>😀</text></svg>

    8. Head over to https://emojipedia.org/ and find your favorite emoji.

    9. Press the "copy" button on your preferred emoji. E.g. Ours came from https://emojipedia.org/grinning-face/

   10. Paste your selected emoji in place of our grinning face emoji.

   11. Click "Create Head Tag" on the bottom right of this new head tag card. 

adding-emoji-favicon-zesty.png

   12. Finally make your new favicon live by refreshing your instances cache from the very top right of the app by clicking on your instance name and then clicking Finally make your new favicon live by refreshing your instances cache from the very top right of the app by clicking on your instance name and then clicking "Refresh Instance Cache" from the flyout. 

refresh-instance-cache-zestyio.png

Now visiting your website should display a really fun emoji favicon in your browser tab!

emoji-favicon.png


Zesty.io has been designed to support utf8mb4 character encoding which besides emojis means we can handle content internationalization. In addition to instances being able to support multiple languages, they are all backed by a globally available CDN allowing our customers to connect with their audiences, wherever they may be. 

To learn more, sign up for a demo today!

Insights in your inbox

Subscribe to the Zesty newsletter

Latest articles

Subscribe to the zestiest newsletter in the industry

Get the latest from the Zesty team, from whitepapers to product updates.