Support » Everything else WordPress » HTML Generated for Smilies does not have Width/Height Attributes

  • The html generated (<img> tag) by WordPress for the smilies does not have the width and height attributes. As a result, my blog fails to validate.

    How could I fix this?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Mine don’t – and I validate.
    Where is the site ?

    My blog is at http://blog.debajit.com/ (It’s still under construction)

    I’m using WebXACT (http://webxact.watchfire.com/) to validate and test for accessibility issues.

    Okay, I realize that http://validator.w3.org/ does not flag missing width/height attributes for images as errors 🙂

    But if I wanted to add width/height to the HTML code generated by WordPress, is there an easy way to do it?

    wp-includes/vars.php
    $wp_smiliesreplace[] = " <img src='" . get_settings('siteurl') . "/wp-images/smilies/$img' alt='$smiley_masked' class='wp-smiley' /> ";

    There’s the code that inserts the html and that’s where you would need to change.
    BUT
    – keep a backup of vars.php
    – If you upgrade you will have to use this file and if vars.php is upgraded you will have to redo the code
    and
    – why do this ?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘HTML Generated for Smilies does not have Width/Height Attributes’ is closed to new replies.