Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Adding a graphic to header


ThoroughWeb

Recommended Posts

Posted

Hi again,

 

Another newbie question regarding customizing the header.

 

I have replaced oscommerce.gif with my client's logo and I've changed the stylesheet.css so that the background for header.php is repeated all the way across the page.

 

The last thing I need to do is add another graphic to the header.php, right justified. I am unsure of the right way to go about this, any suggestions?

 

Thanks

 

Robin

Posted

Open your includes/header.php file and you'll find the tablerow (tr) that holds the data (td) cells for the logo. In a stock header, the area that would be changed around looks like this...

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

Posted

Hi, thanks for your reply,

 

I did find that file, but I'm unsure of the proper coding to add another graphic. Can you elaborate please?

 

Robin

Posted

You just use standard html. For an image which is a link it would be something like:

<a href="page_name.php"><img src="images/some_image.gif" width=*** height=*** alt="whatever"></a>

 

Vger

Archived

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

×
×
  • Create New...