Guest Posted March 21, 2006 Posted March 21, 2006 Hi I want to add a banner just below my nav bar in the header.php file. The banner will be a random selection of images say 800x150. The functionality the same as the banner in the footer.php file that can be administered from Admin. I have tried to insert the code from the footer.php to the header.php file but nothing works. Code I have been looking at is <?php if ($banner = tep_banner_exists('dynamic', '468x50')) { ?> <br> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td align="center"><?php echo tep_display_banner('static', $banner); ?></td> </tr> </table> <?php Can I get some advise on what needs to be in the header.php file for this to work. Thanks W
Guest Posted March 21, 2006 Posted March 21, 2006 Hi I resolved this but putting footer.php code into header.php. That worked so I then combined header and footer into one file, then stripped away what I did not want. Fundamentally, added the following (not sure of the difference to the original idea but this worked :P <?php if ($banner = tep_banner_exists('dynamic', '468x50')) { ?> <table border="0" width="100%" cellspacing="0" cellpadding="5"> <tr> <td align="center"><?php echo tep_display_banner('static', $banner); ?></td> </tr> </table> <?php } ?> after <?php require(DIR_WS_INCLUDES . 'counter.php'); ?> W
Recommended Posts
Archived
This topic is now archived and is closed to further replies.