Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Image on homepage/ default.php?


OSNewbie

Recommended Posts

Hello forum. I am trying to put an image on the default.php (home page) of the catalog, but can't seem to intergrate it.

 

I can place the image in various places outside the actual catalog itself, but I want an image where is says "What new here....Welcome guest...." and delete the standard text.

 

Can anybody post me some coding or similar that I can place in the default.php file?

 

Thanks

Link to comment
Share on other sites

default.php is used for many sections of the catalog. For the main page, look in default.php for the lines:

<?php

 } else { // default page

?>

 

This section is the default.php when on the main page of the catalog. You would want to add the image there.

 

If you want it on all of the time, then also add it to the start of that if statement as well.

Link to comment
Share on other sites

default.php is made up of both php and html. if you want to show a graphic file all the time on the default.php page, simply find the code inbetween the <!-- body_text //--> and <!--body_text_edo//-->. All you have to do is find the table in which you would like your picture to show, or create a new table, and insert a standard image call. <img src="something.jpg">

 

That's it.

-Chris

Chris Sullivan

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...