Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

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

This comment has been minimized.

Copy link
Owner Author

florianbrinkmann commented Apr 2, 2020

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

@webdados

This comment has been minimized.

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
You can’t perform that action at this time.