Ready to get started?Download WordPress


iiRe Social Lite
[resolved] Html5 Validation error for href attribute on div (4 posts)

  1. klode
    Posted 12 months ago #

    the HTML5 Validator on W3C website says to me that a div cannot have href as attribute for div element. Instead, it's possible to use another attribute (for example, uri or extlink, or whatever) and use it for Javascript function.

    Thanks for your supply.


  2. klode
    Posted 12 months ago #

    I have found a solution for this inconvenient.
    first of all, remove all elements into Widget settings and Shortcode settings.

    then, in the "iire_social_lite_widget.js" and "iire_social_lite_shortcode.js" change all "href" attribute calling with jquery to "data-href", and in the rendering of widget, in the div "icon" element, change "href" to "data-href".

    That's it.

    In the creation of widget for iiRe social Lite, a jQuery function create the string with anchor element and the div with all information regarding the image to show for the social link. One of the attribute (href) will be change to "data-href" for a solution on validation with W3C Validator.

  3. srussell13
    Plugin Author

    Posted 12 months ago #

    I can look into changing that in the next upgrade. A div is necessary since the background image is created from a sprite and float alignments.

  4. srussell13
    Plugin Author

    Posted 12 months ago #

    Can you please send me (srussell dot iireproductions dot com) a link with the zip file of your changes to the plugin?


You must log in to post.

About this Plugin

About this Topic