I want to use a base64 favicon because favicon extends the loading time of my site.
function add_favicon() {
echo ‘<link rel=”shortcut icon” type=”image/x-icon” href=”data:image/x-icon;base64,AAABAAEAZGQAAAEAIACoogAAFgAAACgAAABkAAAAyAAAAAEAIAAAAAAAQJwAAMMOAADDDgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA…..==” />’;
}
add_action(‘wp_head’, ‘add_favicon’);
I’m adding this code to function.php and removing site favicon from woocommerce appearance and woodmart general settings. But base64 favicon doesn’t open and woodmart original favicon opens. (/themes/woodmart/images/icons/favicon.png) How can i solve this.
For example