Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Adding an Image to the Homepage?

Adding an Image to the Homepage?

Locked

Views: 733

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
3 Nov 2009, 4:50 PM
#1
compuweb avatar

compuweb

New Zenner

Join Date:
Aug 2009
Location:
Limerick, Ireland
Posts:
91
Plugin Contributions:
0

Adding an Image to the Homepage?

Hello,

I have added an image to the homepage of my new site. I added it through "define main page". It can be seen here: http://www.buyright.ie/store/ (work in progress)

What I would like to do is add the image so that it appears above the "centerColumn" or above the bordered white section which contains the main content.

I do not want it appearing inside the "centerColumn" (as it currently does) as it does not look as good.

Any help would be great.

3 Nov 2009, 5:41 PM
#2
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: Adding an Image to the Homepage?

You should have a look at:

includes/templates/yourtemplate/tpl_index_default.php

or

includes/templates/default_template/tpl_index_default.php

(If the first version does not exist you should create it by copying the second file to this position. Then you can edit the top version.)

It is pretty straight forward file so you should find your way around it. If you need more help just post again.

that file might be tpl_index_categories.php depending on whether you are displaying categories on the home page.

4 Nov 2009, 9:53 AM
#3
compuweb avatar

compuweb

New Zenner

Join Date:
Aug 2009
Location:
Limerick, Ireland
Posts:
91
Plugin Contributions:
0

Re: Adding an Image to the Homepage?

Nick,

Thank you so much for your help, it worked perfectly.

I first tried editing the existing file "tpl_index_categories.php" but nothing happened.

I then created the file "tpl_index_default.php", added the image and it worked perfectly.

My only question is what is the difference between these two files?

Thanking you again, Noel.

4 Nov 2009, 9:56 AM
#4
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: Adding an Image to the Homepage?

One is used when category images are displayed on the home page and the other is used when category images are not displayed on the home page.

This is a setting in admin.

4 Nov 2009, 9:58 AM
#5
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: Adding an Image to the Homepage?

Hey, that looks much better!