Zen Cart Logo
Forums / Basic Configuration / Banners in index main page

Banners in index main page

Locked

Views: 1,899

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
12 Nov 2007, 9:23 PM
#1
derer avatar

derer

New Zenner

Join Date:
Aug 2005
Posts:
19
Plugin Contributions:
0

Banners in index main page

Hello, I have a problem. I need to have 4 banners on main page, which I would configure from admin area. Same as there are banner boxes so I need something similar to main page. And I need to have the possibility to change the banners from admin. Can anybody help? Thank you!! michal

13 Nov 2007, 4:05 PM
#2
derer avatar

derer

New Zenner

Join Date:
Aug 2005
Posts:
19
Plugin Contributions:
0

Re: Banners in index main page

I have a idea but I don´t know the realization. I can take the code from banner box and take it to main page but I don´t know if it will be right. Any idea how to do it?

13 Nov 2007, 10:50 PM
#3
derer avatar

derer

New Zenner

Join Date:
Aug 2005
Posts:
19
Plugin Contributions:
0

Re: Banners in index main page

I solved tha problem...

14 Nov 2007, 12:01 AM
#4
bekinky avatar

bekinky

Zen Follower

Join Date:
Jan 2007
Posts:
97
Plugin Contributions:
0

Re: Banners in index main page

How did you solve this problem? I need to have banners on the main page too and would be interested to know your solution

14 Nov 2007, 12:57 PM
#5
derer avatar

derer

New Zenner

Join Date:
Aug 2005
Posts:
19
Plugin Contributions:
0

Re: Banners in index main page

So you can use banners from heading and footer. You can find the code here: includes/templates/template_default/common/tpl_main_page.php where you delete code of banners... like: <?php if (SHOW_BANNERS_GROUP_SET1 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET1)) { if ($banner->RecordCount() > 0) { ?>

<div id="bannerOne" class="banners"><?php echo zen_display_banner('static', $banner); ?></div> <?php } } ?>

and paste to main page code in includes/templates/template_default/templates/tpl_index_default.php
preferable under the code: <h1 id="indexDefaultHeading"><?php echo HEADING_TITLE; ?></h1>
to have the banners upsite.. I hope it will help you!! Than you will configure only css style. you can see resilt on page https://www.florbalnet.cz

15 Nov 2007, 12:09 AM
#6
bekinky avatar

bekinky

Zen Follower

Join Date:
Jan 2007
Posts:
97
Plugin Contributions:
0

Re: Banners in index main page

Fantastic - it works a treat. Many thanks for saving me days of hard work :clap: