开发者 | setzer |
---|---|
更新时间 | 2014年1月9日 15:15 |
PHP版本: | 3.0 及以上 |
WordPress版本: | 3.8 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
[ref]
shortcode, like so:
Here's the text to annotate.[ref]Note text goes here.[/ref]
To change default settings, use the Side Matter options page linked under the Appearance menu on your admin screen.
side-matter
directory to /wp-content/plugins
.[ref]
shortcode to generate notes in posts and pages, like so: [ref]Note text goes here.[/ref]
As of version 1.4, the Side Matter options menu has its own settings page. It can be accessed from the Side Matter link under the Appearance menu on your admin screen.
Many themes are one-column by design and do not include a sidebar. Without a sidebar, Side Matter has no place to put your notes. Make sure that your theme includes a sidebar and that you've placed the Side Matter widget within that sidebar.
This usually happens because of a conflict with your theme or another plugin. Caching/minification plugins are a common culprit; try adding /wp-content/side-matter/js/side-matter.js
to your caching plugin's exclusion list if it's interfering with sidenote display.
Theme conflicts can be difficult to pin down, but are most often caused by some idiosyncratic bit of theme CSS or JS. (For example, the theme Twenty Eleven can be made to work with Side Matter by adding a few lines of CSS.)
Not all themes are built to incorporate a plugin like Side Matter. It works well with most base themes that include a sidebar, but it isn't guaranteed to display notes perfectly under all themes. A little tinkering with note offset or CSS will fix most problems; in other cases, consult your theme's developer.
Some themes mysteriously cause sidenotes to appear at an offset from their corresponding references in the text. As a workaround for this problem, Side Matter's options menu includes a field for arbitrarily adjusting your notes' vertical offset.
Yes. Use the custom action side_matter_list_notes
in your sidebar template, as seen below:
[ref]
shortcode, such as [video]
or [gallery]
.ol
element on pages without notes.div.side-matter-widget
CSS class selector; use .widget_side_matter
instead.[ref]
quicktag button to the post editor.title
attribute has been improved.id
conflicts between notes.title
attributes and list numerals.a
tags have been given a title
attribute for accessibility.side-matter-ol
and side-matter-li
. Numbered classes, e.g. side-matter-sup-6
, are now deprecated.side-matter.css
, allowing them to be more easily superseded by user CSS.a
anchor elements within sidenotes to correct a stubborn layout issue. Reference numerals now link to sidenotes via li id
.p
tags by WordPress.span
tags with div
tags to correct a display problem in some browsers.side-matter.php
, simplifying and consolidating code for future development.