Simple Footnotes 0.3

I’ve released a small update to my Simple Footnotes plugin.

If you paginate your posts, you can now move your footnotes below your page links. Look under Settings > Reading for a simple toggle. Regardless of the setting, footnotes will still appear as normal for posts that are unpaginated.

This feature was requested by Chip Bennett, and he’s been using this update on his site for a few days. Rave reviews! 🙂

Feature requests welcome! I’d like to allow you to customize the markup a bit, if that is desired. Also, I have some code running on this blog that allows logged-in users to utilize footnotes in their comments, which I’m willing to integrate into the plugin as well.

The plugin is available in the WordPress Plugin Directory. Here’s the source. The new version is 0.3. I’ll be writing more about this plugin in the future, so you should probably bookmark the tag or subscribe to its RSS feed.

New Plugin: Simple Footnotes

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. 1 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.

Notes:

  1. 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!)