• Resolved geekgirl

    (@geekgirl)


    I’ve downloaded the custom smiley plugin from https://qad.donationcoders.com/wp/custom-smileys. the plugin works fine when used in my comments, but when I use one an a post, it fails valaidation by not including the alt tag. Here is an example of the error..

    Line 47, Column 103: required attribute “alt” not specified.
    …oo/heartbeat.gif" class="wp-smiley" /> <img src="https://lovelatoya.com/wp-inc

    Is there any way I could fix this? Would I have to manually add the alt code somewhere or is there a fix for this?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter geekgirl

    (@geekgirl)

    anyone please?

    Thread Starter geekgirl

    (@geekgirl)

    Giving this one final bump to see if anyone can help. =(

    asrai

    (@asrai)

    you can ask the author of the code to make the next release XHTML strict compatible.

    In the meantime, manually add the alt tag to all your smiles

    as long as it has alt=”” property… the page will validate

    asrai

    (@asrai)

    Hi, I found out how to put an ALT tag in the smilies

    [1] Find this code >>

    // Convert emoticons to graphics on display - same as the default filter

    [2] then below that you’ll see this code >>

    // Find and Replace
    		foreach ( $result as $object ) {
    			$find[] = $object->Emot;
    			$replace[] = "<img src=\"" . get_option("siteurl") . "/wp-includes/images/" . get_option("csm_path") . "/" . $object->File . "." . get_option("csm_ext") . "\" class=\"wp-smiley\"  />";
    		}

    [3] add this code >>
    alt=". $object->File ." after class=\"wp-smiley\"

    asrai

    (@asrai)

    ack step [3] still gives off an error

    add this instead >> alt=\"smiley\"

    Thread Starter geekgirl

    (@geekgirl)

    Thanks for posting this, It is working correctly now! I really appreciate it.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Custom smiley plugin fails validation’ is closed to new replies.