Originally Posted by
gilby
You would put the if() around the code that displays the banners.
As it appears on all pages it will be in your custom template files somewhere so that should narrow it down
Try includes/templates/theme346/common/tpl_header.php
So I looked into the code and I already have the mentioned PHP code: if($this_is_home_page){}
This is the code I have:
PHP Code:
</script></center>
<?php
if($this_is_home_page){
?>
<!-- BOF- BANNER #2 display -->
<?php
if (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2)) {
if ($banner->RecordCount() > 0) {
?>
<div id="bannerTwo"><?php echo zen_display_banner('static', $banner);?></div>
<?php
}
}
?>
<!-- EOF- BANNER #2 display -->
<div class="category-icons">
<a href="index.php?main_page=index&cPath=2"><?php echo zen_image(DIR_WS_TEMPLATE.'images/category1-icon.jpg'); ?></a><a href="index.php?main_page=index&cPath=3"><?php echo zen_image(DIR_WS_TEMPLATE.'images/category2-icon.jpg'); ?></a><a href="index.php?main_page=index&cPath=4"><?php echo zen_image(DIR_WS_TEMPLATE.'images/category3-icon.jpg'); ?></a><a href="index.php?main_page=index&cPath=6"><?php echo zen_image(DIR_WS_TEMPLATE.'images/category4-icon.jpg'); ?></a><a href="index.php?main_page=index&cPath=7"><?php echo zen_image(DIR_WS_TEMPLATE.'images/category5-icon.jpg'); ?></a>
</div>
<?php
}
?>
<?php
if (HEADER_SALES_TEXT != '' || (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2))) {
if (HEADER_SALES_TEXT != '') {
?>
<div id="tagline"><?php echo HEADER_SALES_TEXT;?></div>
<?php
}
}
?>
Any suggestions. It doesn't seem to be working!! :/
Bookmarks