
Originally Posted by
lextechs
How do get the banner to be on the main page only, you can see my test site here
www.lextechs.com/Testsite what i am trying to do is get a banner or have banner 3 only show on the main page and not the other pages
NOTE: This tip can be used with any template!
Open includes/templates/comstock/common/tpl_main_page.php
Find the following section of code at around line(s) 112 - 115
PHP Code:
<?php
if (SHOW_BANNERS_GROUP_SET3 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET3)) {
if ($banner->RecordCount() > 0) {
?>
and replace with the following section of code
PHP Code:
<?php
if ($this_is_home_page && SHOW_BANNERS_GROUP_SET3 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET3)) {
if ($banner->RecordCount() > 0) {
?>