sac9829 Posted May 19, 2004 Posted May 19, 2004 Hi When I go to the configue file to add a new header image the whole header seems to disapear. I think this is because Im placing a larger image then what was their. Does anybody know how to fix this so I can add a larger image?
Guest Posted May 19, 2004 Posted May 19, 2004 what do you mean the 'configue' file, which one are you editing?
peterr Posted May 19, 2004 Posted May 19, 2004 Hi, There is only 1 line to change in /catalog/includes/header.php , line 57 <td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'oscommerce.gif', 'osCommerce') . '</a>'; ?></td> How big (width and height) is the image ? Peter
sac9829 Posted May 20, 2004 Author Posted May 20, 2004 Not sure but most likely twice the size of the standard oscommerce logo! Any ideas
peterr Posted May 20, 2004 Posted May 20, 2004 Hi, Please post the name of the file you are editing, and the code that you have changed. Peter
808smokey Posted May 20, 2004 Posted May 20, 2004 Not sure but most likely twice the size of the standard oscommerce logo! Any ideas open the picture in paint and press CTRL-E it will give you the dimensions. Or right click it and select properties. it will show it there too.
sac9829 Posted May 20, 2004 Author Posted May 20, 2004 Here is the name of the file: sacologo.jpg Here is the code: <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 . 'sacotechlogo.gif', 'SacoTechLogo') . '</a>'; ?></td> </tr> </table> Any ideas!
peterr Posted May 20, 2004 Posted May 20, 2004 Hi, You have deleted a line of code, which is the other table dimension, your code should be (lines 55 to 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 . 'sacotechlogo.gif', 'SacoTechLogo') . '</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> Peter
peterr Posted May 20, 2004 Posted May 20, 2004 Hi, Are you 100% certain that the file "sacotechlogo.gif" is in the /catalog/images/ directory ? Any other images missing ? Peter
Recommended Posts
Archived
This topic is now archived and is closed to further replies.