Skip to content

Instantly share code, notes, and snippets.

@florianbrinkmann
Last active January 1, 2021 19:07
Show Gist options
  • Save florianbrinkmann/a879099f3d28c5e1d64f2aeea042becf to your computer and use it in GitHub Desktop.
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
<?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;
} );
@webdados
Copy link

webdados commented Apr 2, 2020

This kills the customizer icon.

I think this might be a better solution: https://gist.github.com/webdados/a7702e588070f9a1cfa12dff89b3573c

@florianbrinkmann
Copy link
Author

Yes, you are right. Will update the code with a link to your Gist

@webdados
Copy link

webdados commented Apr 2, 2020

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment