Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Adding images to index.php


DazJ

Recommended Posts

Posted

Hi, how on earth do I add an image file amongst my index.php file? i.e. I'm wanting a jpg of an advert advertising one of my products...HTML code doesn't work, any suggestions?

Posted
Hi, how on earth do I add an image file amongst my index.php file? i.e. I'm wanting a jpg of an advert advertising one of my products...HTML code doesn't work, any suggestions?

Hi

 

Not sure where you want the image but if you go into /includes/languages/english/index.php look for something like

 

define('TEXT_MAIN','Your text here');

 

Just change the text. The start of mine looks like

 

define('TEXT_MAIN', '<table align="center" width="530" bgcolor="#FFffff"  border="0" cellspacing="0" cellpadding="0">

		   <tr>
			<td class="main"><b>This is a live shop for testing purposes only - please DO NOT make any orders here!</b> </td></td></tr>

 

There's javascript at the top, hrefs, images, tables etc.

 

Hope this helps

 

Ian

Posted
Hi

 

Not sure where you want the image but if you go into /includes/languages/english/index.php look for something like

 

define('TEXT_MAIN','Your text here');

 

Just change the text. The start of mine looks like

 

define('TEXT_MAIN', '<table align="center" width="530" bgcolor="#FFffff"  border="0" cellspacing="0" cellpadding="0">

		   <tr>
			<td class="main"><b>This is a live shop for testing purposes only - please DO NOT make any orders here!</b> </td></td></tr>

 

There's javascript at the top, hrefs, images, tables etc.

 

Hope this helps

 

Ian

 

Thankyou Ian, that's shed some light on the subject - much appreciated. However, what actual line of code do I have to insert to add an image?

 

Sorry for being such a noob :blush:

Posted
Thankyou Ian, that's shed some light on the subject - much appreciated. However, what actual line of code do I have to insert to add an image?

 

Sorry for being such a noob :blush:

 

Hi

 

Sorry for the delay, I've been offline. A simplyfied version of the code I use is below

 

<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
   <td><a href="http://www.acitp.com" target="_blank"><img border="0" src="/images/acitp.gif" width="103" height="100"></a></td>
</tr>
</table>

 

HTH

 

Ian

Archived

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

×
×
  • Create New...