Results 1 to 8 of 8
  1. #1
    Join Date
    Jan 2010
    Location
    France
    Posts
    291
    Plugin Contributions
    0

    Default Open Graph error w3c can not solve

    I have just a mistake there is no attribute "property <meta property="og:locale" content="us_US" />

    this is my english.php

    PHP Code:
    define('HTML_PARAMS','dir="ltr" lang="us" xmlns:fb="http://ogp.me/ns/fb#"'); 
    this is my html_header.php

    PHP Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" <?php echo HTML_PARAMS?>>
    <head>
    <title><?php echo META_TAG_TITLE?></title>

    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <?php  
    if ($_COOKIE['ResCookie'] != "full") {
        echo 
    '<link rel="stylesheet" type="text/css" href="' $template->get_template_dir('',DIR_WS_TEMPLATE$current_page_base,'css') . '/bootstrap-responsive.min.css" />';
    }
    ?>

    <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET?>" />
    <meta name="description" content="<?php echo META_TAG_DESCRIPTION?>" />
    <meta property="og:locale" content="it_IT" />
    <meta property="og:type" content="website" />
    <meta property="og:title" content="<?php echo META_TAG_TITLE?>" />
    <meta property="og:description" content="<?php echo META_TAG_DESCRIPTION?>" />
    <meta property="og:url" content="<?php echo $canonicalLink?>" />
    <meta property="og:site_name" content="<?php echo STORE_NAME?>" />
    I read many pages but I can not find a solution
    Thanks for the help
    Giovanni,
    Zen Cart V2.1

  2. #2
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    4,246
    Plugin Contributions
    58

    Default Re: Open Graph error w3c can not solve

    Your DOC Type is wrong for the tags, but even still opengraph tags are not going to fully validate in W3C.

    <!DOCTYPE html>

    ~Melanie
    PRO-Webs, Inc. since 2003 :: Zen Cart Hosting :: Zen Cart SEO – 12 Steps to Success
    **I answer questions in the forum, private messages are not conducive to a helpful community.

  3. #3
    Join Date
    Jan 2010
    Location
    France
    Posts
    291
    Plugin Contributions
    0

    Default Re: Open Graph error w3c can not solve

    Thanks Melanie, then I have no choice I have to keep the only mistake I w3c Since I can not change the doctype?
    Giovanni,
    Zen Cart V2.1

  4. #4
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Open Graph error w3c can not solve

    Quote Originally Posted by diamond1 View Post
    Thanks Melanie, then I have no choice I have to keep the only mistake I w3c Since I can not change the doctype?
    Ummm who said you CAN'T change the doctype??? You can if you NEED to.. You just have to make sure you re-validate your site, and make the corrections needed..

    That said, despite what some may think, the W3C validator is not the FINAL authority on site validation.. It is a tool that will help you find and squash the most common HTML mistakes..

    Melanie is right. Open Graph tags are not going to validate using the W3C validator.. not because they are WRONG, but because the validator doesn't recognize them. Validate your Open Graph tags with Facebook and if they validate there, and the rest of your site validates using the W3C validator, then you're GOOD..
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  5. #5
    Join Date
    Jan 2010
    Location
    France
    Posts
    291
    Plugin Contributions
    0

    Default Re: Open Graph error w3c can not solve

    Melanie thanks, I just a mistake to Open Graph, if I remove the Open Graph meta tags of the site passes validation, if change in doctype <! DOCTYPE html> I have many errors is the site does not look good I need someone to forso is able to enter the <! DOCTYPE html> and make riparaziono. One other thing Melanie at this point you should leave the metatatg Open Graph and have a single mistake, or remove the metatag is to have 100% w3c validation?
    Giovanni,
    Zen Cart V2.1

  6. #6
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Open Graph error w3c can not solve

    Quote Originally Posted by diamond1 View Post
    Melanie thanks, I just a mistake to Open Graph, if I remove the Open Graph meta tags of the site passes validation, if change in doctype <! DOCTYPE html> I have many errors is the site does not look good I need someone to forso is able to enter the <! DOCTYPE html> and make riparaziono. One other thing Melanie at this point you should leave the metatatg Open Graph and have a single mistake, or remove the metatag is to have 100% w3c validation?
    Gonna repeat this...
    despite what some may think, the W3C validator is not the FINAL authority on site validation.. It is JUST A TOOL that will help you find and squash the most common HTML mistakes..

    Open Graph tags are not going to validate using the W3C validator.. not because they are WRONG, but because the validator doesn't recognize them. Validate your Open Graph tags with the Facebook validator and if they validate there, and the rest of your site validates using the W3C validator, then you're GOOD.
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  7. #7
    Join Date
    Jan 2010
    Location
    France
    Posts
    291
    Plugin Contributions
    0

    Default Re: Open Graph error w3c can not solve

    Thanks Melanie
    Giovanni,
    Zen Cart V2.1

  8. #8
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Open Graph error w3c can not solve

    Quote Originally Posted by diamond1 View Post
    Thanks Melanie
    FYI.. Melanie = screen name mprough

    My screen name is DivaVocals.. (my real name is CRYSTAL not Melanie)

    But you are welcome..
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

 

 

Similar Threads

  1. v151 Open Graph Meta Tags
    By BlessIsaacola in forum General Questions
    Replies: 2
    Last Post: 9 Nov 2013, 11:36 AM
  2. I want to add Facebook open graph tags
    By stevemax in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 18 Jul 2011, 07:07 PM
  3. Where do I add facebook open graph tags?
    By surlybroad in forum All Other Contributions/Addons
    Replies: 5
    Last Post: 25 May 2011, 04:12 PM
  4. Open Graph DOCTYPE -- can't validate W3C
    By damiantaylor in forum General Questions
    Replies: 2
    Last Post: 29 Apr 2011, 04:50 PM
  5. Replies: 1
    Last Post: 16 Feb 2011, 07:46 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg