Title: Bug in generated code
Last modified: August 21, 2016

---

# Bug in generated code

 *  Resolved [TStone](https://wordpress.org/support/users/tstone/)
 * (@tstone)
 * [13 years ago](https://wordpress.org/support/topic/bug-in-generated-code/)
 * 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/](http://wordpress.org/extend/plugins/font-emoticons/)

Viewing 1 replies (of 1 total)

 *  [solhuebner](https://wordpress.org/support/users/solhuebner/)
 * (@solhuebner)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/bug-in-generated-code/#post-3906126)
 * Thank for for sharing this!

Viewing 1 replies (of 1 total)

The topic ‘Bug in generated code’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/font-emoticons_00b0ff.svg)
 * [Font Emoticons](https://wordpress.org/plugins/font-emoticons/)
 * [Support Threads](https://wordpress.org/support/plugin/font-emoticons/)
 * [Active Topics](https://wordpress.org/support/plugin/font-emoticons/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/font-emoticons/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/font-emoticons/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [solhuebner](https://wordpress.org/support/users/solhuebner/)
 * Last activity: [12 years, 11 months ago](https://wordpress.org/support/topic/bug-in-generated-code/#post-3906126)
 * Status: resolved