Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How To Add An Splash Image On The First Page, Instead Of Default Text?


mariusmac

Recommended Posts

Posted

Hi ppl

 

I want to add a nice image on the first page. I want it to be on the center of the page right above 'What's new here?' It will be like a poster. I want that only on the first page. How can I do that?

 

Thank you very much guys

Posted

In index.php, you could also replace this block of code:

		  <tr>
		<td class="main"><?php echo tep_customer_greeting(); ?></td>
	  </tr>
	  <tr>
		<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
	  </tr>
	  <tr>
		<td class="main"><?php echo TEXT_MAIN; ?></td>
	  </tr>

 

With your image like this:

<tr>
		<td><img src="yourimage.jpg"></td>
	  </tr>

Please use the forums for support! I am happy to help you here, but I am unable to offer free technical support over instant messenger or e-mail.

Posted

Yes, yes, yes!!!

 

The only problem is that the picture falls between the 'What's new here?' text and the new products. I want the picture to be above 'What's new here?' text.

I will try to fix it myself. If you have time to reply with a fix please do so because I'm pretty new to php :)

 

Thank you very much Brian.

Posted

Ah, I misread the original message. In that case, undo what you did above then find these lines:

 

	  <tr>
	<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
	  <tr>
		<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>
		<td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_default.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>
	  </tr>
	</table></td>
  </tr>

 

and add right above those lines:

	  <tr>
	<td><img src="yourimage.jpg"></td>
  </tr>

Please use the forums for support! I am happy to help you here, but I am unable to offer free technical support over instant messenger or e-mail.

Archived

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

×
×
  • Create New...