Home Forums WoodMart support forum Base64 favicon not adding

Base64 favicon not adding

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #232646

    okanayranci
    Participant

    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

    #232650

    Artem Temos
    Keymaster

    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

    #232662

    okanayranci
    Participant

    I tried on twentytwenty and it works. You can check it from private content.

    #232664

    Artem Temos
    Keymaster

    This page is not opening to us.

    #232674

    okanayranci
    Participant

    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?

    #232800

    Artem Temos
    Keymaster

    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.

Viewing 6 posts - 1 through 6 (of 6 total)