WordPress.org

Ready to get started?Download WordPress

Forums

Validation errors (6 posts)

  1. breger
    Member
    Posted 8 years ago #

    I have recently found that my site does not validate in W3C and can't figure out how to correct this. I have pasted code in the Paste Bin (http://paste.uni.cc/7651). The URL is http://www.airdrie.net/weblog2
    Any ideas?

  2. Have a look in your index.php for this code:

    <?php trackback_rdf(); ?>

    It needs to be in HTML comments like this:

    <!--
    <?php trackback_rdf(); ?>
    -->

    And the validator should then be happy

  3. breger
    Member
    Posted 8 years ago #

    Thanks for the advice. I have performed this action and cleared the cache but still get 17 errors. Anything else I need to do?

  4. jalenack
    Member
    Posted 8 years ago #

    It doesn't look like these changes took effect. I still see the <rdf> stuff without <!-- comments -->. Sure you edited the right theme and right blog?

  5. breger
    Member
    Posted 8 years ago #

    I edited the index.php for the theme I'm using and as far as I know this was saved but I'll re-check just in case.

  6. breger
    Member
    Posted 8 years ago #

    Just re-checked and all OK - it passes validation. Don't know what happened before but seems fine now. Many thanks to both of you for your help.

Topic Closed

This topic has been closed to new replies.

About this Topic