Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Header configuration & styling »

Would like image map added to header.php to only appear on the static homepage


  #1  
Old Aug 24, 2009, 08:24 AM
southrules
 
1 posts · Mar 2009
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
  #2  
Old Aug 27, 2009, 11:14 AM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
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

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
php in footer.php - links to just show up on homepage chris Atahualpa 3 Wordpress theme 6 May 9, 2010 12:50 PM
[SOLVED] Last blog entry on static homepage JournalStone Atahualpa 3 Wordpress theme 8 Aug 11, 2009 05:23 PM
[SOLVED] Need static header image to display on the front page but no image on any o joaodagraca Header configuration & styling 2 Aug 10, 2009 01:45 AM
how to remove header image from homepage only? SoftDux Header configuration & styling 1 Mar 30, 2009 07:26 AM
Atahualpa: Static homepage two times caoba Page & Category Menu Bars 1 Mar 12, 2009 11:52 PM


All times are GMT -6. The time now is 12:57 AM.


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