WordPress.org

Ready to get started?Download WordPress

Forums

Font Emoticons
Bug in generated code (2 posts)

  1. TStone
    Member
    Posted 1 year ago #

    In the "font-emoticons.php" all the smileys are applied on a span tag. The problem is that the author think the span tag can be self-closing. That is a flaw that seldom is noticed, since most browsers correct the mistake in certain occasions.

    But the problem becomes very much evident and troublesome once you try to style the smiley with css, let's say make the size 80% of the surrounding text and in another color. Then, the styling get applied not only on the smiley, but on everything else after it.

    So to close the span properly, on line 36 change this:
    $code = '\\1<span class="icon-emo-'.$this->name.'"/>\\2';

    to this:

    $code = '\\1<span class="icon-emo-'.$this->name.'"></span>\\2';

    http://wordpress.org/extend/plugins/font-emoticons/

  2. solhuebner
    Member
    Posted 10 months ago #

    Thank for for sharing this!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.