Base64 favicon not adding
-
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
Hello,
Could you please check how it works with some default WordPress themes like TwentyTwenty or WooCommerce Storefront to understand is it our theme issue or not?
Regards
I tried on twentytwenty and it works. You can check it from private content.
This page is not opening to us.
OK sorry. If you try again, the site will open. As a result the base64 favicon opens at twentytwenty. When there is no favicon in wordpress and woodmart general settings, woodmart automatically throws a favicon. If we prevent this, the problem will be solved i think. What are your thoughts?
We still can’t reach your website. We have to see how it works now to be able to understand the problem and provide you with all the necessary help.