PattyM Posted March 6, 2007 Share Posted March 6, 2007 In my configurations, I have the heading images set to 100 x 100. This is fine for most of my pages, but on the index page, I do not want an image to show. So I took the default image and made it all blank. While this works for eliminating the image, I am not left with a bunch of white space between the heading and the text because of the height of the blank image. I would just like to remove the line that adds the image to index. I found this line in catalog/index <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . $category['categories_image'], $category['categories_name'], HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> but when I change it to <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . $category['categories_image'], $category['categories_name'], 5,5); ?></td> It does not change anything. I've even tried removing the whole php portion of the pageHeading line, still no change at all. Can someone please tell me how to remove the upper right header image from the index page only. Thanks. Link to comment Share on other sites More sharing options...
usernamenone Posted March 7, 2007 Share Posted March 7, 2007 This will remove the table_background_default.gif if this is what you are calling your right header image. A name of the images would be helpfull. In your index.php around lines 289 find and remove by deleting. Made sure you don't remove the <td> before the table <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> This will remove the image and pop the text even with your side boxes Link to comment Share on other sites More sharing options...
usernamenone Posted March 7, 2007 Share Posted March 7, 2007 If you are talking about the 3 images in the header you need to open your includes/header.php and remove these lines by deleting. lines 55-60 <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr class="header"> <td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'oscommerce.gif', 'osCommerce') . '</a>'; ?></td> <td align="right" valign="bottom"><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_account.gif', HEADER_TITLE_MY_ACCOUNT) . '</a> <a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '">' . tep_image(DIR_WS_IMAGES . 'header_cart.gif', HEADER_TITLE_CART_CONTENTS) . '</a> <a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_checkout.gif', HEADER_TITLE_CHECKOUT) . '</a>'; ?> </td> </tr> </table> Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.