Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Header configuration & styling (http://forum.bytesforall.com/forumdisplay.php?f=15)
-   -   Would like image map added to header.php to only appear on the static homepage (http://forum.bytesforall.com/showthread.php?t=3119)

southrules Aug 24, 2009 08:24 AM

Would like image map added to header.php to only appear on the static homepage
 
I editted header.php by adding an image map below the header config:

<!-- Header -->
<td id="header" colspan="<?php echo $bfa_ata['cols']; ?>">

<?php bfa_header_config($bfa_ata['configure_header']); ?>
<img src="http://www.greggsmith.com/boc1/wp-content/uploads/programs.jpg"

width="952" height="190" alt="Programs" usemap="#programmap" />

<map name="programmap">
<area href="http://greggsmith.com/boc1/programs/alpine-racing/" shape="rect" coords="10,

14, 161, 181">
<area href="http://greggsmith.com/boc1/programs/snowboarding/" shape="rect" coords="166,

14, 308, 179">
<area href="http://greggsmith.com/boc1/programs/freestyle/" shape="rect" coords="316, 14,

461, 181">
<area href="http://greggsmith.com/boc1/programs/devo-team/" shape="rect" coords="473, 14,

624, 184">
<area href="http://greggsmith.com/boc1/programs/jisp/" shape="rect" coords="631, 16, 786,

182">
<area href="http://greggsmith.com/boc1/programs/masters-racing/" shape="rect"

coords="793, 15, 937, 180">
</map>


</td>
<!-- / Header -->


This worked GREAT, but I don't want it to appear on the other pages, tried the below, but it didnt' work:


<?php if ( is_front_page() AND is_home()) ?> {

<img src="http://www.greggsmith.com/boc1/wp-content/uploads/programs.jpg" width="952"

height="190" alt="Programs" usemap="#programmap" />

<map name="programmap">
<area href="http://greggsmith.com/boc1/programs/alpine-racing/" shape="rect" coords="10,

14, 161, 181">
<area href="http://greggsmith.com/boc1/programs/snowboarding/" shape="rect" coords="166,

14, 308, 179">
<area href="http://greggsmith.com/boc1/programs/freestyle/" shape="rect" coords="316, 14,

461, 181">
<area href="http://greggsmith.com/boc1/programs/devo-team/" shape="rect" coords="473, 14,

624, 184">
<area href="http://greggsmith.com/boc1/programs/jisp/" shape="rect" coords="631, 16, 786,

182">
<area href="http://greggsmith.com/boc1/programs/masters-racing/" shape="rect"

coords="793, 15, 937, 180">
</map> } ?>

Any help for this non profit website would be appreciated

Flynn Aug 27, 2009 11:14 AM

is_front_page is the real homepage whereas is_home is the blog posts homepage, if you've set a static page as the front page. So either replace AND with OR or drop is_home


All times are GMT -6. The time now is 05:09 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.