Content · Gutenberg

Tooltip block for WordPress

Display a word or phrase with a hover tooltip popup — great for definitions, abbreviations, and inline explanations.

Get Blockenberg

Free Gutenberg block in Blockenberg. The inspector controls and front-end behavior on this page come from this block’s source, not a shared stub.

Get Blockenberg

What it actually does

Display a word or phrase with a hover tooltip popup — great for definitions, abbreviations, and inline explanations.

Inspector panels on this block: Content, Trigger Style, Tooltip Popup. Those titles come from index.js, not from a shared template.

Behavior controls: “Trigger style” options: Dotted underline, Solid underline, Dashed underline, Highlight, Bold; “Text alignment” options: Left, Center, Right; “Position” options: Top, Bottom, Left, Right; “Animation” options: Fade, Scale up, Bounce, Zoom out, Slide down.

Where to find it

Gutenberg inserter → Content → search “Tooltip” (block name `blockenberg/tooltip` in block.json). Style it in the sidebar after insert.

How to use Tooltip block for WordPress

  1. Install Blockenberg. Install from WordPress.org and activate the plugin.
  2. Insert the block. Edit a page, click +, search for “Tooltip”, insert it. Category: Content.
  3. Configure inspector controls that exist on this block. Open Content. Set “Trigger Text (visible)”, “Tooltip Content (popup)”, “Trigger style”, “Text alignment”.
  4. Check the published page. The view script reads HTML data attributes: data-opts, data-rendered. The block editor preview may not run the same view script.

Inspector controls from this block’s code

ControlWhat the code does
Trigger Text (visible)Text field in the inspector. block.json default: Hover over me. Saved as `triggerText`.
Tooltip Content (popup)Multiline text field in the inspector. block.json default: This is the tooltip explanation. Add any helpful context here.. Saved as `tooltipContent`.
Trigger styleSelect control; the chosen value is saved on the block. Options: Dotted underline; Solid underline; Dashed underline; Highlight; Bold; Italic; None. block.json default: underline-dotted. Saved as `triggerStyle`.
Text alignmentSelect control; the chosen value is saved on the block. Options: Left; Center; Right. block.json default: left. Saved as `align`.
PositionSelect control; the chosen value is saved on the block. Options: Top; Bottom; Left; Right. block.json default: top. Saved as `position`.
AnimationSelect control; the chosen value is saved on the block. Options: Fade; Scale up; Bounce; Zoom out; Slide down; Slide up; Slide left; Slide right; Blur; Flip. block.json default: fade. Saved as `animationType`.
Max width (px)Numeric range control in the inspector. Range 150–480. block.json default: 260. Saved as `maxWidth`.
Padding (px)Numeric range control in the inspector. Range 6–24. block.json default: 12. Saved as `tooltipPadding`.
Border radius (px)Numeric range control in the inspector. Range 0–24. block.json default: 8. Saved as `tooltipRadius`.
Show arrowOn/off toggle in the inspector. On by default. Saved as `showArrow`.
Trigger Text ColorColor control in the inspector. block.json default: #6366f1. Saved as `triggerColor`.
Underline / Accent ColorColor control in the inspector. block.json default: #6366f1. Saved as `underlineColor`.
Highlight BackgroundColor control in the inspector. block.json default: #ede9fe. Saved as `highlightBg`.
Tooltip BackgroundColor control in the inspector. block.json default: #1e293b. Saved as `tooltipBg`.
Tooltip Text ColorColor control in the inspector. block.json default: #f8fafc. Saved as `tooltipColor`.

What the front-end script actually does

When this is the right block

Notes from the implementation

viewScript: this folder’s frontend.js is enqueued on the front end for this block.

FAQ

How do I add the Tooltip block in WordPress?

Install Blockenberg from WordPress.org, edit a page in the block editor, click +, and search for “Tooltip”. It sits under Content. After insert, open Content and set “Trigger Text (visible)”, “Tooltip Content (popup)”, “Trigger style”, “Text alignment”.

What makes Tooltip different from other Blockenberg blocks?

Display a word or phrase with a hover tooltip popup — great for definitions, abbreviations, and inline explanations. Inspector labels on this block include “Trigger Text (visible)”, “Tooltip Content (popup)”, “Trigger style”, “Text alignment”.

Is the Tooltip Gutenberg block free?

Yes. Tooltip ships inside Blockenberg. Get the plugin from WordPress.org — no paid add-on is required for this block.

Can I style Tooltip to match my theme?

Yes. Blockenberg’s shared typography and color panels apply here, plus any block-specific style controls listed on this page (panels: Content, Trigger Style, Tooltip Popup).

Related content blocks

Get Blockenberg

Install Blockenberg from WordPress.org, then insert Tooltip from the Gutenberg inserter.

Get Blockenberg