Update: I have since updated this plugin. Want to learn more? Check out more recent posts.
When writing “On PHP”, I realized I needed footnotes. A search of the plugins directory revealed a number of plugins, but most were either old, overly complicated, or needed some work. I needed something dead simple.
Twenty minutes later, I had a quick plugin serving my need. Jeff Waugh asked me about it, and so here it is.
A whopping forty lines of code, it leverages the ref shortcode and ↩ as the return arrow. Style it yourself — I have some code in my child theme of Twenty Ten.[ref]Here’s what I use:
#content .simple-footnotes { font-size: 13px; line-height: 17px; margin-top: 20px; color: #777 }
#content .simple-footnotes p.notes { margin-bottom: 0 }
#content .simple-footnotes ol { margin-top: 0; }
#content .simple-footnotes li { padding-top: 10px }
.entry-content sup, .entry-content sub { font-size: 11px }
sup { bottom: .75ex }
(Yes, other shortcodes work inside these footnotes!)[/ref] I can think of a few things I could add to it, like being able to optionally number footnotes yourself (would be helpful if you added one later) or customizing little things like display options. But for now, it’s simple, and it works.
Feedback encouraged of course. The plugin is available in the WordPress Plugin Directory. Here’s the source. The current version is 0.2.