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.
|
0 |
<meta property="og:type" content="blog" xmlns:og="http://ogp.me/ns#" /> |
Error Line 43, Column 76: Attribute xmlns:og not allowed here.
|
0 |
<meta property="og:title" content="WP Demo" xmlns:og="http://ogp.me/ns#" /> |
Warning Line 44, Column 102: Attribute with the local name xmlns:og is not serializable as XML 1.0.
|
1 |
…cription" content="Just another WordPress site" xmlns:og="http://ogp.me/ns#" /> |
Error Line 47, Column 88: Attribute xmlns:fb not allowed here.
|
1 |
…operty="fb:app_id" content="223323961043507" xmlns:fb="http://ogp.me/ns/fb#" /> |
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:
|
35 36 37 38 |
function html_tag_xmlns_attrs($attrs) { $this->namespaces_declared = true; return $attrs . ' ' . implode(' ', $this->get_xmlns_attrs()); } |
For the twitter:card HTML5 error:
Comment out Line 57:
|
57 |
$twitter_tags['twitter:card'] = 'summary'; |
Comment out Line 84 and 85:
|
1 2 |
if (!($twitter_tags['twitter:card'] = $this->get_postmeta('twitter_card'))) $twitter_tags['twitter:card'] = $this->get_setting("default_{$post->post_type}_twitter_card"); |
- Video: Steve Jobs explains the rules for success
- 2011 Incheon Korean Music Wave Festival
- Bye Bye LG-LV7400
- Add Language Translation to your Website
- Top 20 Ajax Tutorials
- Top 10 PSP Games of 2009
- Matt Cutt on Page Title Changes on Google
- Obama Death Poll on Facebook Apps on Spotlight
- Ultracapacitors look to fit into energy storage
- Vote for NazcarPine.com – Best WordPress Design of 2009
