Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to remove image on index.php?


Guest

Recommended Posts

Posted

Hi there,

 

On the main index page, i want to remove the "Whats new here" text and the image to the right of it. It makes my page look too plain, hence too much white space.

 

Although i can easily change or remove the text and change the size of the image to 1 x 1 pixels in the admin interface - which would work. However, I can't, as i have images in subcategories that rely on the size 100 x 100. So i'm not going to change the size.

 

so the question is, how would i remove that image?

 

Many thanks

Posted

you have to change the index.php files here /catalog/index.php

 

starting at line 287

<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>

 

and at line 310 change it to

<tr>

<td><?php // include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td>

</tr>

Posted
you have to change the index.php files here /catalog/index.php

 

starting at line 287

  <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>

 

and at line 310 change it to

  <tr>

            <td><?php // include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td>

          </tr>

 

You could also create a transparent image in photoshop, save it as "table_background_default.gif" and upload it to the image folder (making sure you overwrite the old image).

That has worked for me the in the past.

"Sometimes doing the right thing isn't doing the right thing"

Archived

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

×
×
  • Create New...