Support » Plugin: Favicon by RealFaviconGenerator » Does not validate the HTML – please help!

  • Resolved leod79


    I’m getting an error when trying to validate my page.

    Attribute color not allowed on element link at this point.

    <link rel="mask-icon" href="/wp-content/uploads/fbrfg/safari-pinned-tab.svg" color="#5bbad5">

    The problem is that I NEED the validation to pass, it’s a requirement.

    Can you help me to remove that line from the plugin? I couldn’t find it in the source 🙁

    Please help me.


Viewing 2 replies - 1 through 2 (of 2 total)
  • I found a workaround, I’ll remove the “mask-icon” line from:

    wp_options table
    option_name “fbrfg_html_code”

    Apple & Safari, go to hell!

    Plugin Author phbernard


    I’m glad you found a workaround!

    Here is the trick to be W3C compliant, without hack: when you are on RealFaviconGenerator and you design you icons, in the “macOS Safari” section, choose “No icon” (full caption: “No icon. Safari uses the first letter of your domain name to create a default icon. You should use this option if your site absolutely needs to be W3C compliant.”).

    Unless you definitely don’t want to spend any more time on this topic, I advice you to create your favicon again and this time select “No icon” as the macOS Safari choice. The reason for this is that the plugin not only generated the mask icon, it also kept trace of it. And if it upgrades the icons automatically (yes, it can do that, for example when Apple releases a new Touch icon with a higher resolution…), your hack will be overwritten, the mask icon will be back and the validation will fail again.

    I hope that helps!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Does not validate the HTML – please help!’ is closed to new replies.