WordPress.org

Ready to get started?Download WordPress

Forums

Footnotes without Markdown? (8 posts)

  1. Kerim
    Member
    Posted 9 years ago #

    I'd like to implement some code to make it easy to have footnotes in WP blog posts. Ideally they would be numbered automatically, formatted properly, and have links back to the footnote in the text. Any help or suggestions would be appreciated. I would like this to use some unique tag instead of Markdown. Maybe <footnote></footnote>.

  2. iand
    Member
    Posted 9 years ago #

    Can be done with CSS, though it is not completely automatic. I have extra quicktags to put the markup in, so it's easy.
    CSS:
    .footnote {
    font-size: .9em;
    border-top: 1px solid #a9a9a9;
    line-height: 150%;
    margin-bottom: 15px;
    }

    At the end of the post:
    <div class="footnote"><sup>1</sup>My footnote</div>

  3. brainwidth
    Member
    Posted 9 years ago #

    If you don't mind me asking, why not use Textile or Markdown to do this?

  4. Kerim
    Member
    Posted 9 years ago #

  5. Kerim
    Member
    Posted 9 years ago #

    IanD: Thanks for the CSS.

    brainwidth: Textile seems to screw up regular HTML that I use. I mostly post with ecto.

  6. Kerim
    Member
    Posted 8 years ago #

    I just found this, which looks really nice:

    http://www.brandspankingnew.net/archive/2005/07/format_footnote.html

    Don't know of any WP implementation yet, however, but it would be nice to have!

  7. moshu
    Member
    Posted 8 years ago #

    In this thread there is an enhanced version of the quicktags.js for download. It works perfectly :)
    http://wordpress.org/support/topic/37515

  8. drzax
    Member
    Posted 8 years ago #

    Just thought I'd add my solution to this thread as well.

    New WordPress Plugin: Footnotes

    S.

Topic Closed

This topic has been closed to new replies.

About this Topic