WP Manifestindependent plugin directory
manifest / utilities / tippy-tooltips-wordpress

Tippy Tooltips

A simple WordPress plugin to enqueue and initialize Tippy.js tooltips in WordPress

★ 0stars
1.0.0latest · 6 years ago

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/dmhendricks/tippy-tooltips-wordpress/archive/refs/heads/master.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Tippy.js Tooltips Plugin for WordPress

A simple plugin that loads and initializes Tippy.js in WordPress.

Usage

After the plugin is installed and activated, you can add Tippy tooltips to HTML elements by setting the data-tippy-content attribute. Example:

<a href="/" data-tippy-content="My Tooltip">Example tooltip</a>

Configuration

This plugin does not have a settings page, but you can optionally configure when you want Tippy to load in WP Admin only, the public/frontend of the site, or both by defining the TIPPY_ENQUEUE_SCRIPTS constant in wp-config.php:

// WP Admin only
define( 'TIPPY_ENQUEUE_SCRIPTS', 'admin' );

// Frontend only
define( 'TIPPY_ENQUEUE_SCRIPTS', 'public' );

// Both (default)
define( 'TIPPY_ENQUEUE_SCRIPTS', true );

If this constant is not defined, it defaults to loading in both. You can also define this constant as false and load it selectively using:

wp_enqueue_script( 'tippy-tooltips' );

CDN Support

If you'd like the scripts to load from jsDelivr, you can define the following constant:

define( 'TIPPY_ENABLE_CDN', true );

Analytics

Releases

1 release.

Tag
Published
1.0.0 latest
Jul 20, 2020 6 years ago

These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.