-
AuthorPosts
-
October 17, 2018 at 6:47 pm #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
October 18, 2018 at 9:55 pm #1023670Hey CloudChoice,
Have you cleared your cache?
Best regards,
BasilisOctober 19, 2018 at 11:01 am #1023828Hi,
Here are the steps I’ve taken:
1 – Clear all caches in the backoffice.
2 – Deactivate and reactivate all pluginsIt 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 historyObviously 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?
October 19, 2018 at 5:19 pm #1024062Hi 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,
NikkoOctober 19, 2018 at 5:39 pm #1024096Hi Nikko,
Thanks.
I will open a new thread because the problem now is related with ICONS, especially a new group of flat iconsBest regards,
October 19, 2018 at 6:01 pm #1024136Hi CloudChoice,
Is this issue resolved? Can we close the thread?
Best regards,
VictoriaOctober 19, 2018 at 6:06 pm #1024139Hi,
Yes, it can be closed.
Thanks!
October 19, 2018 at 8:03 pm #1024197Hi CloudChoice,
Glad that we could help. :)
Thanks for using Enfold and have a great day!Best regards,
Nikko -
AuthorPosts
- The topic ‘How force a favicon refresh?’ is closed to new replies.