Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1022958

    Hi,

    I added a new list of flaticon icons.
    However some of the icons do not update in the browser, especially in the mobile, showing the user the icon in the old version.

    An option for refresh your site’s favicon you can force browsers to download a new version using the link tag and a querystring on your filename.

    Example: <link rel="icon" href="http://www.yoursite.com/favicon.ico?v=2" />

    How can I implement this in enfold for all flaticon? What is the best way to force the browser to download the new version?

    Thanks

    #1023670

    Hey CloudChoice,

    Have you cleared your cache?

    Best regards,
    Basilis

    #1023828

    Hi,

    Here are the steps I’ve taken:

    1 – Clear all caches in the backoffice.
    2 – Deactivate and reactivate all plugins

    It did not help.
    To have the icons appear correctly:
    – Computer: it is necessary to do CTRL + F5
    – Mobile: no use reloading the screen, it is necessary to clear the browsing history

    Obviously a visitor will not be cleaning up their browsing history to see an icon correctly.
    That is why I believe that the only way is that I referred to:

    force browsers to download a new version using the link tag and a querystring on your filename

    Any suggestion?

    #1024062

    Hi CloudChoice ,

    Try adding this code at the bottom of your functions.php:

    add_filter('avf_favicon_final_output','avia_favicon_link');
    
    function avia_favicon_link($icon_link) {
      $icon_link = '<link rel="icon" href="http://www.yoursite.com/favicon.ico?v=2" type="image/x-icon">';
      return $icon_link;
    }

    You’ll need to change the href value.
    Let us know if this helps.

    Best regards,
    Nikko

    #1024096

    Hi Nikko,

    Thanks.
    I will open a new thread because the problem now is related with ICONS, especially a new group of flat icons

    Best regards,

    #1024136

    Hi CloudChoice,

    Is this issue resolved? Can we close the thread?

    Best regards,
    Victoria

    #1024139

    Hi,

    Yes, it can be closed.

    Thanks!

    #1024197

    Hi CloudChoice,

    Glad that we could help. :)
    Thanks for using Enfold and have a great day!

    Best regards,
    Nikko

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘How force a favicon refresh?’ is closed to new replies.