USING WEBSITE LOGO AS FAVICON

Victoria Oluwaferanmi
2 min readJan 12, 2023

Introduction

In this article, we will learn how to use our website logo as a favicon or browser logo.

Favicon or browser icon is a small image mostly a website logo displayed next to the page title on the browser tab. A Favicon is a key recognition of a website in browser tabs, history, bookmarks, and address bar, that is why the website logo is majorly used as a favicon image/icon.

Prerequisites

Basic understanding of how to create react app.

Understand how to locate files from different directories/folders of your project i.e path.

Let’s dive in

Step 1 — Locate React Favicon

The react favicon is located in the public folder. This is what we want to replace.

Step 1 — Add Your Website Favicon

This is the icon you want your website to display in browser tabs, bookmarks, history, and address bar. The Optimal size for the favicon is 16x16 pixels. Place the icon in the Public folder, the image (icon) should be named favicon.ico

Step 2— Link icon path

Open the Index.html file, this is where we will link the favicon to the website using the link tag. The href value is the favicon path.


<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />

Step 3— Start React App

npm start

We have successfully replaced react favicon with our website favicon( website logo). We now have our logo showing in the browser tab.

Done!

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Victoria Oluwaferanmi
Victoria Oluwaferanmi

No responses yet

Write a response