WordPress.org

Ready to get started?Download WordPress

Forums

Disqus Comment System
Validation errors caused by dsq-postid comments rel (3 posts)

  1. neononcon
    Member
    Posted 1 year ago #

    <span class="dsq-postid" rel="1249 http://site.com/?p=1249">7</span>

    It appears that Disqus adds this code to the comment counts aka anything produced by <?php comments_number('0', '1', '%'); ?>

    The errors are:

    Attribute rel not allowed on element span at this point.

    and

    RDFa Core attribute rel is not allowed on the span element in HTML5 + RDFa 1.1 Lite documents. Consider checking against the HTML5 + RDFa 1.1 schema instead.

    What's up with that?

    http://wordpress.org/extend/plugins/disqus-comment-system/

  2. valentin88
    Member
    Posted 1 year ago #

    Hi,

    HTML5 is not accepting "rel" in span.
    You have to edit the disqus.php file from /wp-content/plugins/disqus-comment-system.
    Search for "span class="dsq-postid" and replace the "rel" attribute with data-comm (you can name it how you want: data-xxxxxxx).
    Also, where you see "rel" in javascript, replace it with data-comm. Don't replace the rel in "link rel='stylesheet'" :-)

  3. majordude
    Member
    Posted 9 months ago #

    That doesn't work. :-(

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic