Removing default favicon from WordPress

✔ Recommended Answer

You can just remove this line in header.php:

<link rel="icon" type="image/png" href="http://www.example.com/favicon.png" />

It isn't loaded automatically, so you can't remove it using a filter/remove_action.

Source: stackoverflow.com

Answered By: Jeroen

method #2

To remove the default favicon from your WordPress website, you can follow these steps:

  1. Log in to your WordPress dashboard and navigate to Appearance > Theme Editor.
  2. In the Theme Editor, locate the header.php file and click on it to open it.
  3. Look for the line of code that starts with <link rel="shortcut icon" or <link rel="icon".
  4. Delete this line of code.
  5. Click on the "Update File" button to save your changes.

Alternatively, you can use a plugin like Favicon by RealFaviconGenerator to upload your own favicon and have it automatically replace the default one.

Note: It's always recommended to make a backup of your website before making any changes to the code.

Comments

Most Popular

Remove Unicode Zero Width Space PHP

PhpStorm, return value is expected to be 'A', 'object' returned

Laravel file upload returns forbidden 403, file permission is 700 not 755