Need help adding in code for image map to my headers
-
Hi All
I am using Mantra theme, which has no facility to add a top widget and just allows a graphic as the header image. I have a cute new image which incorporates a menu and social media icons and have code in CSS or HTML to add this to WordPress.I want to remove my current header image and replace it with the new graphic, and add the image map code to make sections of the graphic clickable.
Trouble is, the trial and error method of adding this to my header.php isn’t working and I simply don’t know what I am supposed to do.
Here is the header.php code:
<?php /** * The Header * * Displays all of the <head> section and everything up till <div id="main"> * * @package Cryout Creations * @subpackage mantra * @since mantra 0.5 */ ?><!DOCTYPE html > <html <?php language_attributes(); ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php bloginfo( 'charset' ); ?>" /> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <?php cryout_seo_hook(); ?> <link rel="profile" href="http://gmpg.org/xfn/11" /> <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" /> <?php cryout_header_hook(); wp_head(); ?> </head> <body <?php body_class(); ?>> <?php cryout_body_hook(); ?> <div id="wrapper" class="hfeed"> <?php cryout_wrapper_hook(); ?> <header id="header"> <div id="masthead"> <div id="branding" role="banner" > <?php cryout_branding_hook();?> <div style="clear:both;"></div> </div><!-- #branding --> <nav id="access" role="navigation"> <?php cryout_access_hook();?> </nav><!-- #access --> </div><!-- #masthead --> <div style="clear:both;"> </div> </header><!-- #header --> <div id="main"> <div id="forbottom" > <?php cryout_forbottom_hook(); ?> <div style="clear:both;"> </div> <?php cryout_breadcrumbs_hook();?>And this is the HTML for the Image Map.
<div style="text-align:center; width:1000px; margin-left:auto; margin-right:auto;"> <img id="Image-Maps_7201304150956189" src="http://so-sew-easy.com/wp-content/uploads/2013/04/new-website-banner-draft.jpg" usemap="#Image-Maps_7201304150956189" border="0" width="1000" height="200" alt="" /> <map id="_Image-Maps_7201304150956189" name="Image-Maps_7201304150956189"> <area shape="rect" coords="638,5,688,55" href="https://plus.google.com/117695635189754905375/about" alt="google plus" title="google plus" /> <area shape="rect" coords="879,9,929,59" href="https://twitter.com/DebyAtSoSewEasy" alt="Twitter" title="Twitter" /> <area shape="rect" coords="940,9,990,59" href="http://www.youtube.com/user/DebyAtSoSewEasy" alt="YouTube" title="YouTube" /> <area shape="rect" coords="698,7,748,57" href="http://www.facebook.com/PrintorPlain" alt="Facebook" title="Facebook" /> <area shape="rect" coords="758,8,808,58" href="mailto:deby@so-sew-easy.com" alt="Emil me" title="Emil me" /> <area shape="rect" coords="817,9,867,59" href="http://pinterest.com/debycoles/" alt="Pinterest" title="Pinterest" />Can anyone help me interpret how I insert this image map code into my header.php.
I had posted this on the Mantra support forum but didn’t get an answer.
The topic ‘Need help adding in code for image map to my headers’ is closed to new replies.