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
To remove the default favicon from your WordPress website, you can follow these steps:
- Log in to your WordPress dashboard and navigate to Appearance > Theme Editor.
- In the Theme Editor, locate the header.php file and click on it to open it.
- Look for the line of code that starts with
<link rel="shortcut icon"
or<link rel="icon"
. - Delete this line of code.
- 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
Post a Comment