Hotspot

The Hotspot block allows you to overlay interactive hotspots on images or animations. These hotspots can trigger popovers containing any block-based content. It’s ideal for creating rich visual explanations, infographics, or guided interactions.

Screenshot of the Hotspot block with a background image added and two Hotspot in the top area with open empty popovers each.
A Hotspot block with a background image added. Two Hotspot Spots have been added as well in the top area and both have the popovers opened, which are empty.

When adding the block, you first select an image or animation directly in the editor. Hotspots can then be placed by holding the Alt (Windows) or Option (Mac) key and clicking the desired position. You can reposition them by dragging, or remove them by Shift + Click. Clicking a hotspot opens its popover, where you can insert any blocks. To customize the look of a single hotspot, click on it to select the child block and adjust its settings in the sidebar.

In the block toolbar, there are two more settings: alignment (none, wide with, full width, left, center and right) and lock hotspot posistions, which allows to avoiding accidental movement of the spots.

Settings

Screenshot of the Settings Tab of the Hotspot block, explained in the following paragraphs.

Under Instructions a short description explains how to place and delete hotspots using keyboard and mouse click combinations.

Under Image you can choose between a static image or a Lottie animation. Uploading is possible for both formats. There’s an optional switch for using a different image on mobile, which reveals an additional upload field if activated.

Under Behaviour Two options are available for frontend behavior:

  • Trigger popover on hover instead of click. This refers to the Hotspot Spots.
  • Allow only one popover to be open at a time.

The block also supports Animations. In the Advanced section, you can find settings for HTML anchor, additional CSS classes, the Greyd Styles Class and toggles to hide the block per breakpoint.

Styles

Screenshot of the Styles tab of the Hotspot block, explained in the following paragraphs.

Under Dimensions, you can set padding and margin options for all sides provided by the WordPress Core component.

Under General, you can define the Hotspot design. Three display modes are available:

  • Element: A basic filled circle with an optional outer ring. Available settings:
    • Color: Inner and outer circle colors can be customized. You can also set different colors for hover and active states.
    • Size: In addition to the general element size, you can also customize the space between the inner and the outer circle.
    • Border Radius: Set rounded corners for the hotspot via the Border Radius component.
  • Icon: Choose an icon from the icon picker. Additional setting:
  • Image: Upload a custom image to use as the hotspot marker.

All modes have the following settings available:

The Popover design settings are the same for all modes:

  • General: Define the position of the popover relative to the hotspot (Top, Bottom, Right, Left). Optionally, an indicator triangle can be displayed. You can set the distance between hotspot and popover.
  • Color: Customize both the text and background color. You can also set different colors for the hover state.
  • Size: Set maximum and minimum widths for the popover with the Range Unit Control component, as well as adjusting the size per breakpoint.
  • Border radius: Set rounded corners for the popover via the Border Radius component.
  • Border: Set border width, style and color and adjust it for the hover state.
  • Shadow: Set a drop shadow for the popover with the Drop Shadow Control component.
  • Padding: Set custom padding with the Dimension Control Spacing component, also per breakpoint.

Under Size, you can set the width of the image or animation with the Range Unit Control component, as well as adjusting the size per breakpoint.

Hotspot Spot child block

Screenshot of the Hotspot child block settings, explained in the following paragraphs.

Each hotspot is a child block with its own settings. If you’re looking for other options, which are located at the parent Hotspot block, there’s a button that allows you to directly focus the Hotspot block which brings you to the settings mentioned above.

Under Position, you can manually adjust the spot placement. Values are defined in relation to the top left corner and offer various options with the Range Unit Control component. They can also be adjusted per breakpoint. If the positions of the hotspots are blocked, the fields are not editable. Instead, a button appears at the bottom of this section that allows to unlock all hotspots again.

Under Design, you can set a delay of the animation in milliseconds. It’s also possible to overwrite the design of the hotspot individually, clicking the toggle will provide you with all settings for the hotspot design and popover design mentioned in the above Styles section.

The block also supports Animations. In the Advanced section, you can find settings additional CSS classes, the Greyd Styles Class and toggles to hide the block per breakpoint.

Video

You are currently viewing a placeholder content from Vimeo. To access the actual content, click the button below. Please note that doing so will share data with third-party providers.

More Information

Last updated: