Skip to content
GPLWP Guides

How to add interactive hotspots to images in WordPress

Media & Galleries Time About 20 minutes 7 steps Updated 18 Nov 2026

MEDIA & GALLERIES
The short answer

You can add basic clickable regions with an HTML image map, but responsive pins, tooltips and rich popups usually need a plugin. For most WordPress sites, create the image in a hotspot editor and place it on the page with a block or shortcode.

The route
  1. 01Choose the hotspot behaviour
  2. 02Use a native image map
  3. 03Install a hotspot plugin
  4. 04Create the interactive image
  5. 05Embed it on the page
  6. 06Check mobile and accessibility
  7. 07Take the fast route with ImageLinks

What you need

  • An image prepared for the page
  • Admin access to WordPress
  • A clear list of hotspot labels, links or tooltip content

Choose the hotspot behaviour

Decide whether each hotspot should open a page, show a short label, display a tooltip, or reveal richer content such as an image, video, button or product card. Use click or tap as the primary interaction; hover-only hotspots are easy to miss on phones.

For a product photo, map or floor plan, mark the hotspot locations on a copy of the image first. Keep the number of markers low enough that the image remains readable.

Use a native image map

For a few simple links, you can do this without a plugin. Add a Custom HTML block and connect an <img> element to a <map> element with usemap. Add one <area> element for each rectangle, circle or polygon, giving each area an href and descriptive alt text. WordPress provides a Custom HTML block for inserting this markup, and the HTML standard supports these image-map elements.

This manual route is fine for a static diagram with a handful of links. It does not give you rich tooltips or a visual editor, and the coordinates can stop matching when the image shrinks on mobile. Responsive image maps need additional adjustments, so use a plugin for anything more involved.

Install a hotspot plugin

For responsive markers and popups, install an image-hotspot or image-map plugin from Plugins > Add New. Activate it, then look for the plugin's image, map or hotspot editor in the WordPress dashboard. The exact menu name varies, so follow the plugin's own setup screen rather than looking for a universal WordPress setting.

Choose a plugin that stores positions relative to the image, supports tap as well as hover, and offers a block or shortcode for placing the result in content. These features prevent the common problem where pins drift away from the image on smaller screens.

Create the interactive image

Open the editor, choose an image from the Media Library, and add a hotspot at each area you want to explain. Drag each marker into place, then add its title, tooltip text, link or other content. If the editor supports shapes, use a polygon for irregular regions such as rooms, countries or parts of an infographic; use a point marker for products or people.

Set the opening behaviour to click or tap unless hover is genuinely useful. Add meaningful labels and links, and avoid placing markers directly over important text in the image.

Embed it on the page

Save or publish the image, then copy the shortcode supplied by the editor or insert its dedicated block. In the block editor, add a Shortcode block with /shortcode, paste the shortcode, and preview the page. WordPress's Shortcode block is designed for inserting plugin-generated content into posts, pages and widget areas.

If the plugin provides a block, use that instead of manually copying shortcode attributes. Do not paste JavaScript into a Paragraph or Image block; WordPress can flag that as invalid block content or remove disallowed markup.

Check mobile and accessibility

Preview the image at desktop, tablet and phone widths. Test every marker with a mouse, keyboard and touchscreen, and check that tooltip text is not cut off by the edge of the screen. On phones, a popup may need to appear below the image rather than beside the marker.

Give the background image useful alt text, give each linked hotspot a clear label, and make sure visitors can understand the image without relying on colour or hover. If markers move after a theme or page-builder update, check for image cropping, fixed-height containers, lazy-loading conflicts or duplicate hotspot scripts.

Take the fast route with ImageLinks

For the quickest setup, use ImageLinks instead of building the interaction by hand. Upload the image, drag hotspots into position, and attach tooltips, links, product cards or custom content. It suits shoppable images, maps, floor plans, infographics and team pictures.

ImageLinks also provides responsive hotspot positioning, animated markers, rich tooltip content, WooCommerce product links, themes, custom CSS, shortcode and page-builder support. Choose this route when you need several images, richer popups or a maintainable editor rather than a few fixed links.

The fast route

Let ImageLinks do it

Drag-and-drop hotspots with tooltips and product cards; choose it for shoppable images, maps, floor plans, and infographics.

Get ImageLinks

Sources

  1. wordpress.org /documentation/article/custom-html/?utm_source=openai
  2. developer.mozilla.org /en-US/docs/Web/HTML/How_to/Add_a_hit_map_on_top_of_an_image…
  3. wordpress.org /plugins/puntomappa/?utm_source=openai
  4. wordpress.org /documentation/article/shortcode-block/?utm_source=openai
  5. wordpress.org /documentation/article/block-error-unexpected-or-invalid-con…

Questions

Can WordPress add image hotspots without a plugin?
Yes, WordPress can display basic clickable hotspots with an HTML image map using <code><map></code>, <code><area></code> and <code>usemap</code>. This works well for a small diagram where each region simply links to another page. It becomes awkward when you need responsive positioning, tooltips, rich content, hover effects or easy editing by non-technical users.
Why do image-map hotspots move on mobile?
Image-map coordinates are based on the image's dimensions, so they can stop lining up when the image is resized. Making the image responsive is not enough by itself; the hotspot coordinates also need to scale. A dedicated hotspot plugin usually stores positions proportionally or handles the resizing for you.
Should hotspots open on hover or click?
Use click or tap as the main trigger because touchscreens do not have a reliable hover state. Hover can be useful as a preview on desktop, but important information and links should still be available when someone taps or uses a keyboard. Test the chosen behaviour on a real phone rather than relying only on the desktop preview.
Can hotspots link to WooCommerce products?
Yes, a hotspot can link to a WooCommerce product page, and some hotspot plugins can show product details, prices or add-to-cart actions inside the popup. For a simple catalogue image, regular links are enough. For a shoppable image with product cards and responsive markers, use a plugin that explicitly supports WooCommerce content.
What should I do if the tooltip is cut off?
First check the popup position, the image container's overflow setting and the page-builder column width. Move the popup away from the image edge or choose a setting that places it below the image on small screens. Also test whether a theme or optimisation plugin is loading conflicting CSS or duplicate hotspot scripts.