How can you place html below the footer on the first page only?
How can you place html below the footer on the first page only?
Using Zen Cart 1.5.1
Can the html be placed on the index.php page only, below the footer?
Using Zen Cart 1.5.1
yes by using banner manager in your admin area, just add your html to your banner and set where you'd like it to display. There's a thread or it may have been a FAQ page too of how to set it to show on homepage only.
I am revising the following in tpl_main_page.php
from Linda's (Ajeh) Post but I am still getting the banner on all pages, below the footer.Code:<?php if ($this_is_home_page && SHOW_BANNERS_GROUP_SET3 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET3)) { if ($banner->RecordCount() > 0) { ?>
I am trying to make it show up on the first page / home page, below the footer only.
Last edited by Kevin205; 10 May 2013 at 07:52 PM.
Using Zen Cart 1.5.1
Try wrapping this logic in
if ($this_is_home_page) {
...
That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.
I tried
also triedCode:<?php if (($this_is_home_page) && SHOW_BANNERS_GROUP_SET3 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET3)) { if ($banner->RecordCount() > 0) { ?>
No luck.Code:<?php if (SHOW_BANNERS_GROUP_SET3 != '' && $this_is_home_page && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET3)) { if ($banner->RecordCount() > 0) { ?>
Using Zen Cart 1.5.1
I went a head and installed a fresh Zen 1.5.1 to test. I modified the following code at line 104 and I am getting the same results. Banner at position 3, below the footer, shows up on all pages.
includes/templates/classic/common/tpl_main_page.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) { ?> <div id="bannerThree" class="banners"><?php echo zen_display_banner('static', $banner); ?></div> <?php } } ?>
Using Zen Cart 1.5.1
wrong banner?
PHP Code:<?php
if ($this_is_home_page && (SHOW_BANNERS_GROUP_SET4 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET4))) {