Skip to content

WordPress plugin for making footnotes, a simple improvement upon Civl Footnotes 2 plugin

License

Notifications You must be signed in to change notification settings

copernicus365/Wordpress-Civil-Footnotes-2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Civil Footnotes 2

WordPress plugin for making footnotes, a simple improvement upon Civil Footnotes's plugin.

Parses and displays footnotes, based on Civil Footnotes, which itself was based on WP-Foonotes by Simon Elvery, and the footnote syntax pioneered by John Gruber. The improvement here is that the title information is placed in a data-title attribute, not in the anchor's title attribute. This allows a custom CSS to style the popup, instead of the ugly default browser way. Without this, adding custom CSS worked, but the default popup still showed at the same time. See here and here.

Here is a sample CSS:

/* Note: See: https://stackoverflow.com/a/2011199/ */
/* selecting on `a.civil-footnote`, could also do: `a[rel="footnote"` */

a.civil-footnote {
  display: inline;
}
a.civil-footnote:hover {
  text-decoration-line: none;
}
a.civil-footnote:hover:after {
  content: attr(data-title);
  z-index: 99;
  font-size: 18px;
  border-radius: 10px;
  padding: 4px 10px;
  margin-left: 5px;
  color: #fff;
  background: rgba(55, 55, 55, 0.5);
}

About

WordPress plugin for making footnotes, a simple improvement upon Civl Footnotes 2 plugin

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages