Fix for SEO Ultimate Open Graph HTML5 Validity

Fix for SEO Ultimate Open Graph HTML5 Validity

SEO Ultimate is an all-in-one SEO plugin that gives you control over title tags, noindex, meta tags, slugs, canonical, autolinks, 404 errors and rich snippets. And recently, open graph module is added. Since most of my WordPress websites are written on HTML5. Validation erros were generated

Line 42, Column 72: Attribute xmlns:og not allowed here.

Error Line 43, Column 76: Attribute xmlns:og not allowed here.

Warning Line 44, Column 102: Attribute with the local name xmlns:og is not serializable as XML 1.0.

Error Line 47, Column 88: Attribute xmlns:fb not allowed here.

Error Line 48, Column 47: Bad value twitter:card for attribute name on element meta: Keyword twitter:card is not registered.

For the attribute xmlns:og HTML5 error.
Open the SEO ultimate module, look for the opengraph submodule and edit the opengraph.php
Comment out Line 37:

For the twitter:card HTML5 error:

Comment out Line 57:

Comment out Line 84 and 85:

You might be interested to check:

Leave a comment:

Incoming search terms:

  • attribute xmlns:og not allowed here
  • Attribute xmlns:v not allowed here
  • attribute xmlns:fb not allowed here
  • attribute xmlns:xlink not allowed here
  • bad value twitter:card for attribute name on element meta: keyword twitter:card is not registered
  • HOWTO: Fix “Keyword title is not registered” error
  • xmlns:og