Zen Cart Logo
Forums / Basic Configuration / Display a different header banner on certain pages

Display a different header banner on certain pages

Locked

Views: 2,608

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
11 Apr 2009, 5:14 PM
#1
george_susini avatar

george_susini

New Zenner

Join Date:
Mar 2009
Location:
Raleigh, NC
Posts:
31
Plugin Contributions:
0

Display a different header banner on certain pages

Hi , I am using Zen Cart 1.3.8a.

I would like to change the header banner that is used on the main page on certain pages like the Specials page to use a special banner for certain advertising campaigns, is there a way to do this ?

Thanks in advance !

11 Apr 2009, 7:15 PM
#2
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Display a different header banner on certain pages

There is a module called Smart Backgrounds which might do what you want.

13 Apr 2009, 9:10 PM
#4
george_susini avatar

george_susini

New Zenner

Join Date:
Mar 2009
Location:
Raleigh, NC
Posts:
31
Plugin Contributions:
0

Re: Display a different header banner on certain pages

Smart backgrounds does not seem to be working for the template I have, to much css I assume. I may try the css per Misty's suggestion , will let you know what works. Thanks for the suggestions

14 Apr 2009, 6:06 PM
#5
george_susini avatar

george_susini

New Zenner

Join Date:
Mar 2009
Location:
Raleigh, NC
Posts:
31
Plugin Contributions:
0

Re: Display a different header banner on certain pages

I solved it, I may have incorrectly state header banner but what I really meant was to display a different (just 1) banner on the specials page in Header position 3. here is the code I came up with in the tpl_header.php file

<!-- bof BANNERS GROUPSET 3 --> <?php if ($_GET['main_page'] != 'specials') { if (SHOW_BANNERS_GROUP_SET3 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET3)) { if ($banner->RecordCount() > 0) { ?>
                <div id="bannerThree"><?php echo zen_display_banner('static', $banner); ?></div>
                <?php
                    }
                  }
 } else { ?> <div id="bannerThree"><img src="../images/header_banner_test.jpg" width="537" height="197" /></div> <?php } ?>
            <!-- eof BANNERS GROUPSET 3 -->