Вход на сайт

Просмотр новости

Найдите то, что Вас интересует

Revisiting WordPress smilies in a pure CSS way

Дата публикации: 20-12-2014 17:32:28

Last night I was reading something interesting then stumbled, in the comments, on a WordPress smiley. Bleeeh. There's a reason one of the first things I do when I setup a new site is uncheck "Convert emoticons like :-) and :-P to graphics on display": 90's phpBB'esque blocky gifs are *ugly*. WordPress 4.2 Roadmap Wish: update those ugly smilies that…

Основное содержимое страницы с новостью.

Last night I was reading something interesting then stumbled, in the comments, on a WordPress smiley. Bleeeh. There's a reason one of the first things I do when I setup a new site is uncheck "Convert emoticons like :-) and :-P to graphics on display": 90's phpBB'esque blocky gifs are *ugly*.

WordPress 4.2 Roadmap Wish: update those ugly smilies that have not changed since, wait for it, EVER (for real)

— Ozh Richard (@ozh) December 19, 2014

In my opinion those smileys are super outdated (they haven't changed since the very beginning of WordPress which, in internet times, is the equivalent of Pleistocene) and they suck for three reasons:

  • they're ugly. Did I already mention that? :)
  • they're too old to live on retina screens
  • it's very inefficient to load one image for each and every emoticon, as Julio points out

Over the years a few people have proposed alternatives for core but this is unlikely to happen, as very nicely summed up by WP Tavern. You can find several alternative as plugins, like New Smileys, but they're just another batch of images.

In the short discussion my tweet sparked, Greg pointed me to his way of doing it and I thought it was wonderful: 100% CSS, no image loaded, ideally tuned and adapted for his theme.

https://twitter.com/ScreenFeedFr/status/546148719092314113

A coffee break later*, here is a sample plugin that replaces your smilies with pure and simple HTML markup that you can then easily style: Ozh' CSS Smilies. Hooo those super annoying cute animated little ghosts!

ghosts_smiley

The plugin is just meant to be a start for those who'll want to style their own smilies. Feel free to use and modify to match your theme!

* yeah right. I took me like 90 minutes just to get that half ugly CSS working :/

Схожие новости

#Наименование новостиТональностьИнформативностьДата публикации
1Five WordPress Features Wanted Before Version 5.009.3113-07-2015
2X-post: AI Guidelines for WordPress015.3101-02-2026
3How to enable pretty permalinks in WordPress under wp-env011.623-02-2023
4X-post: WordPress Credits Updates018.1329-06-2026
5WordCamp Paris slides: Unit Tests for WordPress plugins05.6826-01-2015
6X-post: Introducing Ipsum, the new default theme010.216-09-2026
7Allowing weird characters in YOURLS short URLs08.2823-06-2026
8 Comment on WebP Plugins for WordPress: 8 Options Compared by Akam 014.3812-03-2026
9 Comment on DEV: What a Wonderful WordPress by JWebDev 07.306-10-2026
10Help test mini contributor sessions at WordPress Meetups09.4517-09-2026

Классификация: . Схожих патентов: 0. Схожих новостей: 10. Тональность: 0. Информативность: 10.42. Источник: planetozh.com.