[Help]Error not displaying favicon on wordpress website

by 2 replies
3
I recently encountered a bug not displaying favicon, I remember about 1-2 months recently my website still works normally. The problem is that Chrome has an error on Firefox and IE is not. I checked the code to detect an anomaly, the link rel = "icon" href ... has been dropped on the "body", although in the code it was set to "head".
Hope I get some advice from the warriorforum community.
My English is bad.

#programming #displaying #favicon #helperror #website #wordpress
  • Send your page through a HTML verifier because there is probably invalid HTML that causes Chrome to mangle your HTML.

    If you don't detect a problem, try moving the icon tag to the top of <head>.

    Also use CTRL-U to see the raw HTML not the prettified version in the developer console.
    • [ 1 ] Thanks
  • On my end, to generate all the icon files, I use this website:

    https://realfavicongenerator.net/

    At the end it gives you a package (a .zip file) that you can extract in your root wordpress folder and a set of HTML meta tags to add to your <head> tag.

    I find that fast than using a plugin and once done it cannot change so it should work "forever".

Next Topics on Trending Feed

  • 3

    I recently encountered a bug not displaying favicon, I remember about 1-2 months recently my website still works normally. The problem is that Chrome has an error on Firefox and IE is not. I checked the code to detect an anomaly, the link rel = "icon" href ... has been dropped on the "body", although in the code it was set to "head". Hope I get some advice from the warriorforum community. My English is bad.