Plugin / Add Image Maps

Ian McDonald

Frequently Asked Questions (FAQ)

Unzip add-img-maps.zip into the /wp-content/plugins/ directory, or simply install through the WordPress plugins screen. Activate the plugin through the ‘Plugins’ menu in WordPress Go to Settings for Image Maps to turn on the features you want.
HTML Image Maps don’t play well with responsive images; their dimensions are absolute, and they don’t scale up or down when CSS resizes the image. This is a problem with the image maps themselves. WordPress 4.4 onwards includes srcset and sizes attributes to make all images responsive. So this plugin takes a couple of steps to solve this, both of which can be turned off or on in the plugin settings page. Firstly, it optionally turns off the responsiveness for images with maps, by deleting their srcset and sizes attributes. Secondly, it incorporates David Bradshaw’s Image Map Resizer script to keep image maps the same size as their images. This is useful not just for responsive images, but for every image that is displayed in other than full size.
Add Image Maps doesn’t search the page HTML to find every image (which would slow the plugin down). Instead, it asks WordPress which images are attached to the post/page (or featured, or the header). Unfortunately, depending on the editor you use, it’s possible to add an image to post or page content bypassing the WordPress paperwork that this plugin relies on. These are the things to check: Did you add the Image Map to the right instance of the image? When you add images to a theme, as a header or an icon, WordPress sometimes creates a new cropped or shrunk image. Those copies do not appear in the media library grid screen, so they’re easy to miss. They are listed in the Add Image Maps box on the attachment edit screen, with a link to their attachment edit screen. Is the image attached to the post/page in the WordPress database? (Skip this if it’s the featured image or the header, which are checked separately.) The Add Image Maps box tells you which post/page (if any) the image is attached to. You can change which images are attached to which pages if, as an admin, you go to the Media Library and choose the list view.  Attached? “Attached”, in this context, doesn’t quite mean exactly the same thing as appearing on the page. By default, the images “attached” to the post are the ones uploaded whilst editing it, which is why they are listed as “uploaded to this page” in the post edit screen. Depending which editor you use, you can easily end up putting an image on a post without “attaching” it. And if you upload an image to a page, and then remove the image, it will still be “attached”. You can see which images are attached to what quite clearly on the Media Library screen in List mode (jpg).   Does the site theme include the image ID in its markup? Unfortunately, solving this involves writing something on the Text tab of the post editing screen. Most themes, when the insert images into pages, include the image’s WordPress ID somewhere in the HTML. (The number on the edit screen address after post =). The most popular ways are as the value of an attribute called data-attachment-id or a series of CSS classes of the form wp-image-1234, ending in the id number. If your theme doesn’t have those, then Add Image Maps will try to recognise it by filename, but that’s not guaranteed, and you might have to manually add one of those to the HTML. If you aren’t familiar with the text tab, this is how to do it: Go to the image edit screen, and copy the image ID number from after post= in the web address Go to the page/post edit screen Go to the text tab, and find the start of the

Ratings

0
0 reviews

Rating breakdown

Details Information

Version

1.0.0

First Released

14 Feb, 2018

Total Downloads

1,240

Wordpress Version

3.0 or higher

Tested up to:

4.9.12

Require PHP Version:

5.3 or higher

Tags

Contributors

This plugin has been closed.

Languages

The plugin hasn't been transalated in any language other than English.

DIRECTORY DISCLAIMER

The information provided in this THEME/PLUGIN DIRECTORY is made available for information purposes only, and intended to serve as a resource to enable visitors to select a relevant theme or plugin. wpSocket gives no warranty of any kind, express or implied with regard to the information, including without limitation any warranty that the particular theme or plugin that you select is qualified on your situation.

The information in the individual theme or plugin displayed in the Directory is provided by the owners and contributors themselves. wpSocket gives no warranty as to the accuracy of the information and will not be liable to you for any loss or damage suffered by you as a consequence of your reliance on the information.

Links to respective sites are offered to assist in accessing additional information. The links may be outdated or broken. Connect to outside sites at your own risk. The Theme/Plugin Directory does not endorse the content or accuracy of any listing or external website.

While information is made available, no guarantee is given that the details provided are correct, complete or up-to-date.

wpSocket is not related to the theme or plugin, and also not responsible and expressly disclaims all liability for, damages of any kind, arising out of the use, reference to, or reliance on, any information or business listed throughout our site.

Keep Leading Your Followers!
Share it for them.