Skip to content

constructive/wp-glossary-2024

 
 

Repository files navigation

WP Glossary

WP Glossary is an interactive glossary for WordPress.

  • A glossary content type
  • JavaScript for highlighting glossary terms with a hoverable tooltip

 

Installation

composer require constructive/wp-glossary

 

If you are using the Constructive WP Theme, add the Glossary Service Provider to the providers config:

return [
    \Constructive\Glossary\GlossaryServiceProvider::class
];

  If not, you should just manually copy the code from GlossaryServiceProvider::register() into youf functions.php. Kind of gross, but it should work for now.

 

Usage

Copy the wp-glossary.js and wp-glossary.css from the dist/ folder into your project and enqeue those scripts.

Make a few glossary items, wrap the class of .wp-glossary-scan to any elements with text that you want highlighted as a glossary term, and you should be all set.

example

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

About

A WordPress interactive glossary.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 49.2%
  • JavaScript 44.7%
  • CSS 6.1%