The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

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

  1. neononcon
    Posted 3 years 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.


    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?


  2. valentin88
    Posted 3 years ago #


    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
    Posted 2 years ago #

    That doesn't work. :-(

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Disqus Comment System
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic