Program

Drop Caps plugin for WordPress

MARCH 8, 2011 update: http://www.conanblog.me/it/open-source/wp-dropcaps-upgrades-to-version-0-1-1/

Descrip­tion

I tried two drop-cap plug-ins avail­able in the Wor­Press com­mu­nity. What I noticed is that both are not sup­port­ing char­ac­ters like Chi­nese. So, hey, why not just build one my own! wp-dropcaps makes it easy to change the first let­ter or char­ac­ter into a drop-cap.

Exam­ple: [dc]T[/dc]his is my para­graph with a drop cap. The first let­ter ‘T’ will turn into a drop cap. And, [dc][/dc]试插件, the char­ac­ter ‘测’ will be drop-capped.

If you don’t want your arti­cle have a drop cap, just leave it the way used to.

Instal­la­tion

  1. Down­load the plug-in from here or from wordpress.org.
  2. Upload `wp-dropcaps.php` to the `/wp-content/plugins/` directory.
  3. Acti­vate `wp-dropcaps` through the ‘Plu­g­ins’ menu in WordPress.
  4. Now you can write your first arti­cle with a drop cap, or edit an old one.
  5. Edit the plug-in to change CSS style to fit with your theme/design.

Short­code Guide

Open the short­code with [dc], and close it with [/dc]. The in-between con­tent will turn to drop-cap.

–EOF–

CBlog

About Conan1412

博客,好學者;開源,編程,設計,攝影,音樂,算法,人工智能,機器學習,網絡安全。