Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

add image to main front page


cathy

Recommended Posts

Posted

Hi

I have recently used one of the osc contributions to move the login from the top of the front main page to a side box. I have also centered and made a set width on the whole page.

 

Now I would like to add an image to the front main page that will span the width of the page starting at the right edge of the boxes on the left, all the way to the set- width edge of the page (I have deleted all the right hand boxes)

To view my page www.art-originals.com to see what I have

 

What code would add and where exactly would I add it? (Please explain as though to a small child as I'm not too technical)

 

Any help would be...helpful

 

Cathy

Posted

Are you talking about using <img /> tag to add a very big image on that page (no room for additional text). Using <table background="bg.jpg"></table> to create background (you can add text or even graphics above the background)

 

It really depends on the graphic you want to use. Also keep in mind that your main section has cellspacing and cellpadding.

Posted
Are you talking about using <img /> tag to add a very big image on that page (no room for additional text).  Using <table background="bg.jpg"></table> to create background (you can add text or even graphics above the background)

 

It really depends on the graphic you want to use.  Also keep in mind that your main section has cellspacing and cellpadding.

 

 

Hi

Sorry for the stupid questions.

 

As an experiment I added <img src="myfilename.gif"> to the section of the index.php in the english folder under define('TEXT_MAIN', '

Now I get a broken link box on my page. (I also added the corresponding named image to the image folder)

Is there something else I have to do?

Do I have edd something else in the code to direct it to the picture in the image folder.

 

Thanks

Cathy

Posted
Hi

Sorry for the stupid questions.

 

As an experiment I added <img src="myfilename.gif"> to the section of the index.php in the english folder under    define('TEXT_MAIN', '

Now I get a broken link box on my page. (I also added the corresponding named image to the image folder)

Is there something else I have to do?

Do I have edd something else in the code to direct it to the picture in the image folder.

 

Thanks

Cathy

 

yep, you need to tell your cart that the image is in the images folder.

 

so for example if its in catalog/images you need :

 

<img src="../catalog/images/myfilename.gif">

 

../ takes it back to root, catalog points to the catalog folder, /images points to the images folder inside the calatlog.

 

hope that helps.

Posted
yep, you need to tell your cart that the image is in the images folder.

 

so for example if its in catalog/images you need :

 

<img src="../catalog/images/myfilename.gif">

 

../ takes it back to root, catalog points to the catalog folder, /images points to the images folder inside the calatlog.

 

hope that helps.

 

 

Thanks, that did help!

 

Cathy

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...