Last active
January 1, 2021 19:07
-
-
Save florianbrinkmann/a879099f3d28c5e1d64f2aeea042becf to your computer and use it in GitHub Desktop.
Better way (shows site icon from customizer if existent): https://gist.github.com/webdados/a7702e588070f9a1cfa12dff89b3573c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Do not show favicon (prevents WP logo from showing up since WP 5.4). | |
* Does NOT show a maybe-existent site icon instead. For that, look here: https://gist.github.com/webdados/a7702e588070f9a1cfa12dff89b3573c | |
*/ | |
add_action( 'do_faviconico', function() { | |
header( 'Content-Type: image/vnd.microsoft.icon' ); | |
exit; | |
} ); |
Yes, you are right. Will update the code with a link to your Gist
👍
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This kills the customizer icon.
I think this might be a better solution: https://gist.github.com/webdados/a7702e588070f9a1cfa12dff89b3573c