[Resolved] Add HTML lazy classes to existing node classes
In the generated HTML, there’s a problem caused by the plugin.
If the image which is lazy loaded already has some HTML classes, BJ Lazy Load won’t add its own classes to them, but will duplicate the class element.
<img class="lazy lazy-hidden" class="avatar tiny" alt="" src="http://url.com/wp-content/plugins/bj-lazy-load/img/placeholder.gif" data-lazy-type="image" data-lazy-src="http://url.com/img.jpg" /> <noscript><img alt="" src="http://url.com/img.jpg" class="avatar tiny" /></noscript>
Ideally, you’d want BJ Lazy Load’s own classes to be added to the existing classes. This would resolve many HTML validation errors and be more logical 🙂
Thanks in advance for your help!
- The topic ‘[Resolved] Add HTML lazy classes to existing node classes’ is closed to new replies.