• The plugin generates additional “rel”-attributes in the image links, which is NOT valid any longer in HTML5:

    <a href="imageurl" rel="lightbox[gallery-somecode]">...</a>

    HTML5 requires that only registered keywords to be used in “rel” and “lightbox” is therefore not allowed any longer.

    Solution – use “data-rel”:

    <a href="imageurl" data-rel="lightbox[gallery-somecode]">...</a>

    Just replace “rel=” with “data-rel=” in responsive-lightbox.php and “rel” with “datarel” in js/front.js.

    https://wordpress.org/plugins/responsive-lightbox/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Replace "rel" with "data-rel" to keep HTML5 validity’ is closed to new replies.