Ready to get started?Download WordPress


HTML Generated for Smilies does not have Width/Height Attributes (5 posts)

  1. Debajit
    Posted 9 years ago #

    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?

  2. Mark (podz)
    Support Maven
    Posted 9 years ago #

    Mine don't - and I validate.
    Where is the site ?

  3. Debajit
    Posted 9 years ago #

    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.

  4. Debajit
    Posted 9 years ago #

    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?

  5. Mark (podz)
    Support Maven
    Posted 9 years ago #

    $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.
    - 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
    - why do this ?

Topic Closed

This topic has been closed to new replies.

About this Topic