Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Replace Navigation Bar with Image


themainebaby

Recommended Posts

Posted

I'd like to add an image to the header bar, below the logo, and then keep the navigation bar as is, but use images instead of text for the links. I'd also like to make the header section a little bigger. What is the easiest way to do this.

 

 

Thanks

Posted

Change this:

<a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a>

 

to this:

<a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><img src="images/yourimage.gif"></a>

 

Vger

Posted

This is basic html, which you really need to learn for yourself. But just this one time - the reason there's a box around the image is because it is a link so you need to add border=0, as in:

 

<a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><img src="images/yourimage.gif" border=0></a>

 

For images that are static (are not links) you don't need to add a border command.

 

Yes, you can set a background image for the header, but you need to create a style in the stylesheet and use it for the header. You can find loads of info on css by searching Google or going to www.w3c.org.

 

Vger

Archived

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

×
×
  • Create New...