Zen Follower
- Join Date:
- Oct 2010
- Location:
- Idaho
- Posts:
- 293
- Plugin Contributions:
- 0
How do i make banner ads appear on the front page only?
Maybe I'm a moron, but I can't simply get a banner to display at all. The following things are all in place and nothing shows.
-
My code (below) is from a 12leaves template and it appears in tpl_index_default.php in the centerbox area (just above boxes for New and Featured, etc., and just beneath all header and header navigation code).
-
In Tools >> Banner Manager, I uploaded an image and put it in a new banner group which I named freeship.
-
In Config >> Layout Settings, I put the group name 'freeship' in all of the locations to try to get it display, but it doesn't show up anywhere.
What am I missing?
<?php if (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2)) { if ($banner->RecordCount() > 0) { ?> <div id="bannerTwo" class="banners"><?php echo zen_display_banner('static', $banner); ?></div> <?php } } ?>