Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Deleting the Default Header Images


vintageland

Recommended Posts

SSIA, I want to get rid of all the default head images.  I think they look cheesy and are not needed.  Where do I delete them?

 

 

If this is hard to do I just might make my own.  Thanks alot.

 

-matt

It is not hard but you are going to have to do it for each file.You need to find the line that looks something like this one

 

<?php echo tep_image(DIR_WS_IMAGES . 'table_background_account.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?>

 

and comment it or remove it. This one was for the create an account page so it will be a different image file for the different pages but the

HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT);

should be be the same in all of them.

The Knowledge Base is a wonderful thing.

Do you have a problem? Have you checked out Common Problems?

There are many very useful osC Contributions

Are you having trouble with a installed contribution? Have you checked out the support thread found Here

BACKUP BACKUP BACKUP!!! You did backup, right??

Link to comment
Share on other sites

Anybody wants to deep-six the cartoonish subcategory images (and leave just the names) here's how:

 

Go to approx line 106 in default.php and copy the line ...

 

echo ' <td align="center" class="smallText" width="' . $width . '" valign="top"><a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . tep_image(DIR_WS_IMAGES . $categories['categories_image'], $categories['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '<br>' . $categories['categories_name'] . '</a></td>' . "\n";

 

... open a space and paste it below and comment // out the first line

Then cut the image code out of the new second line ...

 

. tep_image(DIR_WS_IMAGES . $categories['categories_image'], $categories['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT)

 

That leaves you with just the subcategory names (no cartoons) ...

 

echo ' <td align="center" class="smallText" width="' . $width . '" valign="top"><a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . $categories['categories_name'] . '</a></td>' . "\n";

 

I suppose one could create a (javascript) select box, or change the text style, but I think they look OK as they are. Or maybe just get rid of the names entirely and stick with the category box only

 

-Dave

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...