Site logo

Archived topic

image map in page header

4 replies · Started by John on October 23, 2016

Viewing posts 1–5 of 5

My client wants a full page width image in the page header (that is also used in a single footer widget area) to be mapped so by clicking two different areas of the image the user will go to two different locations. I do this all the time in old school html but I don't see how to do it here. I got a plugin to make the image map responsive when it is resized but not sure how to add the usemap tag to the image or where to put the image map information.

You would have to put the HTML into GP Hooks - most likely the Before Header Content hook.

Let me know if that works :)

Will that put it on every page? Is there a way to have it only on the home page?

Maybe use the is_home() command?

is_home() is specific to the blog (posts page).

is_front_page() is the front page of the site (regardless of what it is).

This archived topic is closed to new replies.