Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

centralising default oscommerce logo


westmidsguy

Recommended Posts

Posted

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

Posted

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

Posted

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?

Posted

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

Posted

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?

Posted

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.

Archived

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

×
×
  • Create New...