Adding a favicon to your WordPress site is a simple process that can be done in a few steps.
- Create your favicon image: Your favicon should be a square image with a resolution of at least 512x512 pixels. You can use an online tool like Canva or Adobe Illustrator to create one.
- Upload the favicon to your WordPress site: Log in to your WordPress dashboard and go to the Media section. Click on the "Add New" button to upload your favicon image. Make a note of the file URL of your favicon.
- Add the favicon to your site's code: Go to Appearance > Editor and locate the header.php file. If you can't find it, look for a file called header.tpl or head.php. You should find a section of code that containers the
Within the head tag, paste the following code:
<link rel="icon" type="image/png" href="your-favicon-url-here">
Replace "your-favicon-url-here" with the file URL of your favicon.
- Save the changes: Click on the "Update File" button to save your changes.
Your favicon should now appear in the browser tab for your WordPress site. If you don't see it immediately, try clearing your browser cache.