脚注指南
This page explains the correct way to include footnotes in a WordPress 页面 or 帖子. It requires content editors to be confident making edits to HTML code. Please contact Peter Hobley (phobley@hebhgkq.com) if you have any questions or need assistance.
1. Determine if you Need Footnotes
Avoid using footnotes if you can simply use a hyperlink to the resource you are referencing. This is the preferred method and a fundamental of how the web works. If you have determined that you need footnotes, follow the steps below.
2. Insert and Markup the Footnote Number(s)
- Insert the first or next number in your footnote sequence in the appropriate place
- Highlight the number
- 选择“上标” option in the toolbar
- 选择“插入/编辑链接” option in the toolbar
- In the box, type the pound sign followed by “fn” a hyphen and the footnote number e.g.: #fn-1
- 选择“应用” button or press enter/return
- If you are currently in “视觉“视图 in the content editor, select the “文本“视图
- Locate the footnote number and its link. e.g. Footnote number 1 would look like this:
1
- Add id and aria-label attributes to the link tag that include the number of the footnote:
1
- Continue with steps 1–9 until you have positioned all your footnote numbers
访问 HTML Example of Correctly Formatted Footnotes 完整的例子.
3. 插入脚注
- At the bottom of the page, after your main content, insert a heading and style it as “标题2“
- After the heading, select the “编号列表” option in the toolbar
- Write your footnotes, following standard content and accessibility best practices. After completion of each one, press return to create the next footnote in the sequence.
- Once all footnotes have been written, if you are currently in “视觉“视图 in the content editor, select the “文本“视图
- Locate the first footnote text. It will surround by list item (
)标签.g.
- This is the footnote text
- Add an ID attribute to the list item that includes the number of the footnote in the following format:
- This is the footnote text
- Before the closing tag of the footnote (
- After the tag, insert a carriage return 字符 (↵), which you can select from the “特殊字符” option in the toolbar and then close the link tag thus:
- Repeat steps 5–8 until all your footnotes have been completed, remembering to advance the number used each time.