westmidsguy Posted October 27, 2009 Posted October 27, 2009 Hello how do i centralise the oscommerce logo or if i have a logo in place of it so it is centralised on the screen? thanks
rescuestat Posted October 27, 2009 Posted October 27, 2009 Hello how do i centralise the oscommerce logo or if i have a logo in place of it so it is centralised on the screen? thanks The osC image or your store image is displayed in the catalog/includes/header.php file. Frank
westmidsguy Posted October 27, 2009 Author Posted October 27, 2009 okay so its this code <td valign="Center"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'store_logo.png', what is the syntax to center it?
rescuestat Posted October 27, 2009 Posted October 27, 2009 okay so its this code <td valign="Center"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'store_logo.png', what is the syntax to center it? If you want it EXACT center you need it to be on it's on TR line.. BACKUP your file first.... FIND: <td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'store_logo.png', STORE_NAME) . '</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> REPLACE WITH: <td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'store_logo.png', STORE_NAME) . '</a>'; ?></td> </tr> <tr class="headerNavigation"> <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> That'll do it. Frank
westmidsguy Posted October 27, 2009 Author Posted October 27, 2009 nope nothing happened all i got was a redish line above my navigation bar hmm
rescuestat Posted October 27, 2009 Posted October 27, 2009 nope nothing happened all i got was a redish line above my navigation bar hmm Now that was a cut-paste out of an unaltered osCommerce RC2.2a, are you using a different version or have you altered the header in any way(such as a template or other type of change)? Is this a live site that we can see?
westmidsguy Posted October 27, 2009 Author Posted October 27, 2009 im using oscommerce v2.2 rc2 i havent changed anything on there
westmidsguy Posted October 27, 2009 Author Posted October 27, 2009 i did not see center anywhere on the code u gave me? also have u tried this?
westmidsguy Posted October 27, 2009 Author Posted October 27, 2009 fixed it i found a code elsewhere on the forum and modified it <tr class="header"> <td valign="middle" align="center"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'store_logo.png', 'osCommerce') . '</a>'; ?></td> </tr> <tr class="header"> <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) . '">' thanks for your help :) i just need to sort out the space between the logo and my navigation bar now.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.