Create Interactive Images using H5P Image Hotspots

H5P allows you to create images with “hotspots” – buttons that users can click to see additional information. This document will walk you through the process of navigating to H5P in the WordPress dashboard, creating an Image Hotspot content type, adding hotspots to an image, and adding your finished image to a WordPress post.

Creating an Image Hotspot in H5P

  1. Navigate to the Dashboard of your WordPress site. 
  2. From the main navigation menu on the left side, select H5P Content. H5P Content link
  3. Select the Add New button.
    The H5P Add New button circled in red
  4. A new page will open and display the H5P Hub.
    The H5P Content hub
  5. Select Image Hotspots to open the Image Hotspots creator.
  6. On the Add New page, you’ll add images and text to create your interactive picture. There are three main sections you’ll need to fill out to create an image hotspot, a Title, your Background Image, and the Hotposts themselves.

Adding Content to an Image Hotspot

When creating an image hotspot, you’ll need to first choose the picture you want to annotate, and then choose where you want to add your annotations before you add the annotation information.

Adding the Background Image

In the first section of the content builder, you'll add a Title, your Background Image and alt text, and choose the icon and color of your hotspots.

  1. Title*:
    • A descriptive title you’ll be able to recognize later. This won’t appear on your page, but it will appear on the list of H5P content.
      • Tip: You can search the list of available content, so choose a title that will be easy to find, like your last name and a short description, e.g. “Smith – NY Daily News, Jan 22 1918” or "Smith – Assignment 1 Image"
  2. Background image*: The image you plan to annotate or add hotspots to.
    • NOTE: Image suffixes must be in lowercase letters, eg. .jpg not .JPG
  3. Alternative text for background image: Alternative text is important for screen readers and other kinds of assistive technology. Type in a short phrase that describes your image.
  4. Hotspot Icon*
    • Predefined icon vs Uploaded image - Use Predefined icon to use one of the 7 included options for your annotations.
      H5P Predefined icons
      • If you’d like to upload your own icon, you can choose Uploaded image to upload an image of your choice.
      • Want inspiration? Take a look at Free Media Sources for places to find free to use media.
    • Hotspot color - This option changes the color of the hotspots. It’s a good idea to use a color that has a high contrast from the background image. Use a tool like Adobe Color Contrast Analyzer to find a likely color.
      The hotspot color dropdown with the color picker expanded

Adding the Hotspots

Each hotspot is added individually. First, choose where your hotspot will appear, then add the text, image, or video you'd like to appear when the hotspot is opened.

  1. Hotspots*
    • Hotspot position* - You will see a preview of your image. Click on the location you want to annotate to choose where your hotspot will appear.
      A gif showing how to set a hotspot
    • Use the magnifying glass to open a larger preview of your background imageA screenshot of the image hotspot tool with a red arrow pointing to the magnifying glass that opens a larger version of the image
    • Optional: Check Cover entire background image if you want to have the entire image covered by your annotation when that annotation is selected.
    • Optional: Header - Enter a title or description if you’d like the popup to have a title.
  2. Popup content*
    1. Content Item - Choose from Text, Video, Image.
    2. Add the text, image, or video content into the new fields.
    3. To add more than one content item, for example, text and an image, choose Add item.
  3. When you have added the content for your first hotspot, choose Add Hotspot.
  4. To add more hotspots, select the Add Hotspot button at the bottom of the page to add a new hotspot. Add your new hotspot information and repeat as needed.

Saving your Image Hotspot Content

  1. When you have  finished creating hotspots, at the top-right side of the page in the Actions block, select Create.
    The create button circled in red
  2. The page will refresh showing the Image Hotspot final result on the left, and a Shortcode block will replace the Actions block on the right.
    The short code block circled in red

Add the Shortcode to the Post

The last step is to add the article to your WordPress post.

  1. Copy the short code displayed in the block in the top corner of your new iframe
    H5P Shortcode window
  2. Navigate to the post or page where you would like to embed your article.
  3. In the Block editor workspace, add a new paragraph block wherever you'd like the Image hotspot to appear on your page.
  4. Paste the shortcode into the new paragraph block.
  5. To preview your new article, select the laptop icon from the top navigation bar, then select Preview in new tab.Preview in a new tab
  6. When you are finished adding content, choose Save draft or Publish to save your work.