Forums / Addon Templates / How to add home page banner? - free Zen Cart template

How to add home page banner? - free Zen Cart template

Locked

Views: 5,009

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
31 Jan 2010, 6:04 PM
#1
bobbywine avatar

bobbywine

New Zenner

Join Date:
Jan 2010
Posts:
3
Plugin Contributions:
0

How to add home page banner? - free Zen Cart template

Hi,

I downloaded free zen cart template from 1 2 l e a v e s .com. I realy like it! :clap: But i need a home page banner like on thier red styled template live demo.

Is there an easy way to add it?
Thanks.

31 Jan 2010, 6:11 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: How to add home page banner? - free Zen Cart template

Where is your site?

Zen-Venom Get Bitten

31 Jan 2010, 6:59 PM
#3
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: How to add home page banner? - free Zen Cart template

I dont see any red stuff on their site, but no matter...

The header logo will either be a JPG or GIF file in that template's images folder.

includes/templates/THAT-RED-TEMPLATE/images/logo.gif (or logo.jpg)

Just replace it with yours.

You can ensure pixellation is correct by ensuring the height given in the stylesheet for #logoWrapper (if applicable) corresponds with the pixel height of your new logo.

**includes/languages/english/header.php **
or
**includes/languages/english/THAT-RED-TEMPLATE/header.php **

... will contain important defines that reference the header logo (such as logo.gif - if you want logo.jpg, then that define needs changing...

20 years a Zencart User

31 Jan 2010, 8:16 PM
#4
vjef avatar

vjef

New Zenner

Join Date:
Jan 2010
Posts:
90
Plugin Contributions:
2

Re: How to add home page banner? - free Zen Cart template

Greetings,

My live demo of red template variation is on the detail pages of every free zen cart templates. For example:
1 2 l e a v e s .com/shop/html/liteblue-zen-cart-template-p29787.html

Click on the "LIVE DEMO" link under "add to cart" section.

To add the home page banner you should:

  1. Upload a banner image to your Zen Cart folder with FTP client (for example: YOUR_ZEN_CART/images/home_banner.jpg)

  2. Log in to your administration panel, open the Tools --> "Define Pages Editor" section, click on the "Select a file to edit" selectbox and choose file "define_main_page.php"

  3. Add a link to your banner into appeared text area:
    <a href="index.php?main_page=specials"><img title="" alt="" src="images/home_banner.jpg"/></a>

  4. Click "Save" button.

  5. Click "F5" on your store front home page in your browser (or refresh it).

That is all.

OR/AND you can edit the following file for your needs:
\includes\templates[YOUR_TEMPLATE]\templates\tpl_index_default.php

You can comment or delete following lines of this file if you don't want the "Welcome text" appears:

<h1 id="indexDefaultHeading"><?php echo HEADING_TITLE; ?></h1> <?php if (SHOW_CUSTOMER_GREETING == 1) { ?> <?php echo zen_customer_greeting(); ?> <?php } ?> <?php if (TEXT_MAIN) { ?> <div id="" class="content"><?php echo TEXT_MAIN; ?></div> <?php } ?>
31 Jan 2010, 8:36 PM
#5
bobbywine avatar

bobbywine

New Zenner

Join Date:
Jan 2010
Posts:
3
Plugin Contributions:
0

Re: How to add home page banner? - free Zen Cart template

thank you very much!!! i'll try it on my local installation.