phpwordpressfavicon

Removing default favicon from WordPress


How can I remove the default favicon link from the WordPress theme? I know I can replace the favicon but I am looking for using the remove_action or something like that which I can place in my functions.php. Thanks.


Solution

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