Do you want to learn how to add a favicon in WordPress?
Favicon or Site Icon is the tiny image that appear next to your website title in the browser. It helps your users identify your website and more frequent visitors of your site will build an instant recognition for that tiny image.
This increases your brand recognition and helps you build trust among your audiences. In our article about most common WordPress mistakes, not adding a favicon was among the top 25.
In this article, we will show you how to add a favicon to your WordPress blog.
Why you should Add a Favicon to Your WordPress Site?
As we mentioned earlier that it establishes your website’s identity. However, it also improves your site’s usability and user experience. This image will help you understand it better:

Most users usually have many tabs open in their browser window. This hides your website’s title as the number of tabs increase. The favicon helps user identify your website and quickly switch to the tab they want.
You can ask your users to add your site to their homescreen on mobile devices. Your site icon or favicon is also used when a user adds your site to their homescreen on a mobile device.

How to Create a Favicon
You can use your brand’s logo as your site icon or favicon. The recommended size for your site icon image is at least 512 pixels in both width and height. The site icon image should be a square, you can use a larger rectangular image and WordPress will allow you to crop the image when you add it.

We recommend using an image editing program like Adobe Photoshop or Gimp to create a site icon of exactly 512×512 pixels. This way you can maintain exact proportions for your image. You can use transparent image or fill the image with a background color of your choice. This image could be in png, jpeg, or gif format.
Video Tutorial
If you don’t like the video or need more instructions, then continue reading.
Adding Your Site Icon or Favicon in WordPress
Since WordPress 4.3, you can add a favicon or site icon from WordPress admin area. Simply go to Appearance » Customize and click on the ‘Site Identity’ tab.

The site identity section in the WordPress theme customizer allows you to change the site title, description, and control whether or not you want to display them in the header.
It also allows you to upload your site icon. Simply click on the select file button and then upload the image you want to use as site icon.

If the image you are uploading exceeds recommended size, then WordPress will allow you to crop it. If it matches the recommended size exactly, then you can just save your changes.
That’s all you can now preview your site and see your favicon in action. You can also visit your site on a mobile device and then from the browser menu select “Add to homescreen’. You will notice that your site icon will appear on the homescreen.
Pro Tip: if you’re trying to customize the SEO title that shows up next to the favicon, then you will need the free All in One SEO plugin. For more details, see our guide on how to install and set up AIOSEO.
Adding Favicon to Older WordPress (4.2 or below)
If you’re using an older version of WordPress or want to learn how to upload your favicon manually, then this step is for you.
First, you need add the favicon file to your website’s root directory using FTP or your WordPress hosting file manager.
After that you can simply paste this code into your theme’s header.php
file.
<link rel="icon" href="https://www.wpbeginner.com/favicon.png" type="image/x-icon" />
<link rel="shortcut icon" href="https://www.wpbeginner.com/favicon.png" type="image/x-icon" />
Make sure to replace wpbeginner.com with your site’s URL, and you are good to go.
If your theme does not have a header.php file, or you cannot find it, then don’t worry, we have a plugin for you. Simply install and activate the free Insert Headers and Footers plugin.
After activating the plugin go to Settings » Insert Headers and Footers and paste the code provided above in the header section to save your settings.
If you don’t want to deal with FTP at all, then you can also use the plugin called All in One Favicon.
We hope that this article helped you add favicon to your WordPress site. You may also want to see our ultimate WordPress SEO guide to improve your rankings or see our expert pick of the must have WordPress plugins to grow your website.
If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.
Alex Perry says
Thanks, after 2 hours of searching I finally found it. How to change the site icon…
WPBeginner Support says
Glad our guide allowed you to add it instead of needing to search further
Admin
Ben says
I think this needs an update. I tried this and there’s no “Site Identity” tab under Appearance > Customize
WPBeginner Support says
Your specific theme may have a custom editor or if you are using the block editor you could add the site logo block, set an image, and in the block’s settings have that set as the site’s favicon.
Admin
FAIZ says
what a great guide, really it’s very helpful
WPBeginner Support says
Happy to hear our guide was helpful
Admin
Max Anderson says
What does the WPBeginner favicon represent?
WPBeginner Support says
Our blob is a simple design of a face smiling using an exclamation point and parenthesis
Admin
AL says
Hi, what to do when Favicon is not showing on chromium-based browser and shows up in Firefox.
WPBeginner Support says
You would normally want to clear your site’s cache as well as try setting the favicon again for a common reason.
Admin
John says
I’m new to this so would appreciate some guidance with favicon. The website I’m trying to look after needs the favicon changing. Can I load a new image as a favicon that will overwrite the favicon currently on the pages or must i delete the current one then load a new image?
Thanks for any reply
WPBeginner Support says
You would want to reach out to the support for your specific theme for if your theme has this option.
Admin
Ray says
I was fine on the video until you said “click on site identity”… there is no such tab on my version. The first option is “Global” then Header, Breadcrumb, UberMenu{main], Blog, etc. No “Site Identity”…so obviously without being to get to that screen I’m not going anywhere. Is there another way in?
WPBeginner Support says
If your theme has different settings and you are unable to find the favicon in the customization settings, you would want to reach out to the support for your specific theme to see if they have it located in a theme-specific area.
Admin
Krishna says
Hii Wpbeginner!
I’m using Astra theme my website Favicon is working every one except Google search results. How can I fixed it?
WPBeginner Support says
You would need to wait for Google at the moment.
Admin
Soul sultan says
This is the awesome guide about how to add favicon on wodpress blog
WPBeginner Support says
Thank you, glad you found our content helpful
Admin
Shomirul Islam Bonny says
Thanks! It helped me!
WPBeginner Support says
You’re welcome, glad it helped
Admin
Munendra Singh says
all helpful post,, thanks
WPBeginner Support says
Glad you found our post helpful
Admin
Raj says
Great ! I always go through from your tutorials when ever i get stuck in any kind of issue. Thanks for it.
WPBeginner Support says
Thanks, glad our articles could help
Admin
John Barson says
Can’t Add a Favicon to Your WordPress Website? That was my problem. I did a fair bit of research where I finally found my issue. It was because the PHP GD Library was not enabled. Fortunately, I control my own server. I had upgraded the server PHP to v7.2 but I forgot to enable the PHP GD library. So…if you find when you try to add the site icon in the appearances section of your wordpress admin and the image you upload/select is not being accepted or you can’t use the crop image feature it is most likely because your webserver host has not enabled the GD Library.
WPBeginner Support says
Thanks for sharing this information should someone else run into that issue
Admin
Cean Herzfield says
Thank you so much! You saved me a lot of frustration because I’m working on Xampp and it was disabled by default. Now wouldn’t it have been nice if they had mentioned it in the article.
Pritam says
Favicon of my website was visible before I changed DNS for Cloudflare. Now it is visible in the admin side but not on the website. How to solve this problem. you can check on my website
Michele A says
This tutorial was wonderful! Thank you so much for the great work!
Jacques says
My Favicon is updating in ADMIN side, but not on user side
Tracy says
Were you able to figure out how to fix it?
RAJ says
“When I go to the “Site Identity” tab, there is no place to upload a site icon. The only option I have is the “Site Title”. That’s ALL!
I am using WordPress 4.7.3.”
Bekzat Sadykov says
I guess, the WP theme you are using doesn’t have favicon implemented. So, if it is not declared in theme functions.php file, it won’t appear in admin/editor side.
You can hardcode it to header.php or use third-part plugins.
jacob says
scroll down a little you will see the place to upload your favicon
Eleanor says
Hi, I recently updated my website from HTTP to HTTPS and when that happened, the site icon stopped working. Does this mean that somewhere along the line I’ve missed a step? I’ve tried changing the image and reuploading a new one and that hasn’t worked. If someone types in the website URL using http then the old favicon (and not site icon) shows up, but the minute it’s https, then it disappears. The site icon though is visible when I’m logged into the dashboard.
Matt Parker says
Eleanor
I’m on HTTPS and I have the same issue, did you find a solution?
Favicon only shows when I’m logged in in admin mode!
Jimmy says
When I go to the “Site Identity” tab, there is no place to upload a site icon. The only option I have is the “Site Title”. That’s ALL!
I am using WordPress 4.7.3.
Please help!
Ahmed Akeem says
I guess, the WP theme you are using doesn’t have favicon implemented. So, if it is not declared in theme functions.php file, it won’t appear in admin/editor side.
You can hardcode it to header.php or use third-part plugins.
Abubakar Sahabi Rafi says
It really helped, more grease to our elbow.
Tim says
Can anyone tell me how this new “Site Icon” feature is supposed to work? I get to the point where the file is uploaded and I get a dialog box that offers to crop the image. The problem is 1) my image doesn’t need to be cropped and 2) there’s no “Save” button (or “Done” or anything similar), only a “Crop” button and the upper right corner X to close the dialog. If I click “Crop” I get an error (Error cropping this image, bla bla bla) and if I hit the X it closes. Either way, my image is not saved as a Site Icon (even though it is saved in the media library. After deleting the image, resizing it to exactly 512×512, I upload it again. This time, no crop dialog, just the “Select” image dialog. I click select, the image has a box around it and a check mark and nothing else happens. No Save, etc. When I close the dialog, there’s still “No image selected.” This happens in Chrome AND Firefox. I’m ready to throw WordPress away and hand code everything. I haven’t used WordPress in a couple of years and I’m frustrated with what seems like buggy, poor design and feature bloat.
Brian says
code easy to interpret, it worked out. thanks…