• I am using twenty eleven theme, WP 3.3.1, and WP-eCommerce plug in on my site: http://www.greenhillsoaps.com

    When I run the pages through the Wc3 Validator, I get error codes and warnings. For Example line 134 of the code on my home page has the following line of code:

    …one” href=”http://greenhillsoaps.com/”></g:plusone></div><li class=”share…

    I get a warning:
    Element name g:plusone cannot be represented as XML 1.0.

    and I get an error:
    Element g:plusone not allowed as child of element div in this context. (Suppressing further errors from this subtree.)

    Further, on the same line (134) there is another line of code:

    …Us: ” style=”width:97px; height:20px;”></iframe></div><li class=”share-en…

    generating the following 3 error messages:

    The allowtransparency attribute on the iframe element is obsolete. Use CSS instead.

    The frameborder attribute on the iframe element is obsolete. Use CSS instead.

    The scrolling attribute on the iframe element is obsolete. Use CSS instead.

    Line 152 has the following code:

    … Personal Publishing Platform” rel=”generator”>Proudly powered by WordPress

    with the error:

    Bad value generator for attribute rel on element a: Keyword generator is not registered.

    Lastly, line 167 has the following code:

    <script type=”text/javascript” charset=”utf-8″>

    And the associated error message:

    Element script must not have attribute charset unless attribute src is also specified.

    I am new at word press and the world of CSS, HTMS, XML, PHP…..
    This code was provided by the Theme parent. I am making all changes in a Child theme.

    Can someone please advise me what I should do about these errors. I am sure it is something very simple that my aged mind cannot quite get to.

    Happy New Year!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Some of those errors I had corrected on my site PVC stolarija when I used “facebook-twitter-google-social-widgets”

    …one" href="http://greenhillsoaps.com/"></g:plusone></div><li class="share… Element name g:plusone cannot be represented as XML 1.0. and Element g:plusone not allowed as child of element div in this context.

    Just use <div class="g-plusone" data-size="medium" data-annotation="inline;%s" ></div> instead like this in your code <div style="display:inline;%s"><g:plusone size="medium" href="%s"></g:plusone>

    For more go to http://www.google.com/webmasters/+1/button/ and click on Advanced options-> HTML5 valid syntax

    Thread Starter FGoldwyn

    (@fgoldwyn)

    Thanks for the answer!

    I have just added them to my site.

    I jsut added the same and resolved the error
    but i could nt understand what is relation of the google + wid the error

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Wc3 validation errors in theme code’ is closed to new replies.