I have been trying to disable the banner for footer on all pages except the home or index page. I do not want it to show anywhere else. But have not been able to do it.
The layout is Banner Display Groups - Footer Position 1 for BannerFour. It is above my actual footer. This is what I input for includes/templates/my_temp/common/tpl_main_page.php.
HTML Code:
<?php
if (SHOW_BANNERS_GROUP_SET4 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET4)) {
if ($banner->RecordCount() > 0) {
?>
<div id="bannerFour" class="banners"><?php echo zen_display_banner('static', $banner); ?></div>
<?php
if (SHOW_BANNERS_GROUP_SET4 == '') {
$show_banner_box = false;
}
if ($this_is_home_page) {
$show_featured = true;
} else {
$show_featured = false;
}
}
}
?></td>
And still showing up. Any suggestions? Kim
Bookmarks