开发者 |
kadamwhite
defomicron |
---|---|
更新时间 | 2020年2月3日 23:52 |
PHP版本: | 7.0.0 及以上 |
WordPress版本: | 5.3 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
title
attribute to the footnote reference in the text which permits sighted mouse users to efficiently read the note by hovering their cursor over the reference number.
Credits
Civil Footnotes was originally created by Austin Sweeney and is currently maintained by K. Adam White.
civil-footnotes.zip
civil-footnotes
folder to the /wp-content/plugins/
directory of your WordPress installTo create a footnote in a post, wrap the note in double parenthesis. For example, if I wrapped ((this in double parenthesis))
, Civil Footnotes would interpret that as a footnote and convert it appropriately. This is a vast improvement over previous solutions which required you to manually keep a numbered reference in the text in sync with a note appended to the end.
Footnotes can be added to any post or page in WordPress. If you are using a plugin which provides Markdown support for your site, you may also include Markdown formatted text and links within your footnotes.
NOTE: You must include a space before the first parenthesis of your footnote; otherwise they will not display. This space will not be included in the final markup.
Civil Footnotes adheres to the WordPress project’s philosophy of "Decisions, not Options". As a result there is no user-facing options configuration screen, and Civil Footnotes is designed to work as one might expect right out of the box. If you do wish to change the behavior of the plugin, there are two ways in which a specific theme can alter how the footnotes render in code:
<sup>
tag in CSS. The footnotes at the bottom of a page use two css classes, .footnotes
and .backlink
, which may be used to apply additional CSS styling to those elements.footnotes_style
hook:
// functions.php
function mytheme_use_roman_numeral_footnotes( $style, $formats ) {
return $formats['lower-roman'];
}
apply_filter( 'footnotes_style', 'mytheme_use_roman_numeral_footnotes', 10, 2 );
All available formats are specified in the keys of this filter's $formats
array.
The best way to report a bug is to open an issue on the plugin's GitHub repository explaining your problem. You can also start a discussion on the WordPress support forum.
Absolutely! We cannot guarantee all feature proposals will be accepted; Civil Footnotes is deliberately lightweight and aims to remain so. If you have a suggestion, however, the best way to request a new feature is to open an issue on the project repository as described above in "I found a bug."
From the Releases page of the plugin’s GitHub repository.
footnotes_style
filter to select roman numerals, symbols, or other non-numeric footnote styles<!--startnum=5-->
footnote number overrides.rel
class to the footnote links<!--startnum=5-->
or similar anywhere in the post or page to do so</p>
tag to not appear in the notes