you're reading:
Html & inline css codes, Smilies

Avoiding accidental smilies

http://wpbtips.wordpress.com/

If you want no smilies in your blog, you’d better go to Settings>Writing and make sure this option isn’t checked:
“Convert emoticons like :-) and :-P to graphics on display”

If you do want smilies, and have this option on, you may occasionally run into trouble: most character combinations for smilies are safe, but there’s the unfortunate case of the “8)” combination (for the smilies you can use in wp.com blogs see here). One might very well want, say, the year 2008 in parentheses, and instead end up with 200 plus a smilie with black glasses (supposedly meaning “cool”).

Solution one, enclose the parenthesis in span tags:

<span>)</span>

Solution two, write the html code for the parenthesis:

&#41;

(Both of course in the html post or page editor.)

http://wpbtips.wordpress.com/

Please don’t paste code in comments – see comment guidelines.
About these ads

Discussion

2 thoughts on “Avoiding accidental smilies

  1. Hey then Panos!
    It has been some bit of time-away for me, (but, as always for you: delete this post, or not, or correct, or not. It’s just that I like to see text displayed with visual cues as in print media)
    re:—
    Your quote:
    “Convert emoticons like :-) and :-P to graphics on display”
    On my screen, :-
    is broken into a new line like this:
    ‘…”Convert emoticons like :-) and :-
    P to graphics on display”…’
    {BTW: my punctuation here is whacky!}

    If it were me, I’d put that quote on a line by itself.

    I would also make this into a new paragraph:
    ” If you do want smilies, and…”

    t

    Posted by Tess | September 10, 2009, 05:37
  2. (I wonder what the equivalent of “aye, aye, Sir” should be in this case!)

    Welcome back, hope you had a great time, thanks for the comment, post duly updated, would much rather hear from you on Dickinson and Atwood (and the proper use of the verb “masquerade” that’s been bugging me since…)

    Posted by Panos | September 10, 2009, 05:57

Author

author's avatar panos (justpi)

 Subject Index

Announcement 22/03/2012: After WP's latest move, this blog will no longer offer active support and assistance. The blog will remain online but commenting on older posts has been disabled.
✶ All theme-related posts are updated up to and including theme 189 in this list, but will not continue to be updated.

Stats

  • 2,552,971 views
  • Views per month:
Safari Icon Firefox - Never Internet Explorer
Note: if you see ads on this site, they are placed by WordPress, not me.
wpbtips.wordpress.com
Mostly on themes, formatting, coding, tweaks and workarounds.
Based on or springing from my contributing in the wp.com forum.
Theme-related posts constantly updated
Premium themes and Annotum not included
%d bloggers like this: