Adding a Favicon to a WordPress Site without a Plugin

Add a custom Favicon to a running WordPress website with no plugins

Adding a favicon to your WordPress site is a simple process that can be done in a few steps.

  1. 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.
  2. 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.
  3. 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 <head>...</head>​ tags. 

    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.
  4. 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.

Launch Now on AWS

Sign in to leave a comment
Add SSL Support to an Odoo Website
Adding SSL support to an Odoo website with AWS Application Load Balancer and Amazon Certificate Manager