Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

I added a table to add navigation links to header


katman1971

Recommended Posts

Posted

Hi

 

I added a table to my header.php but the "About Us" and "Contact Us" links are broken.

 

This is the code I added to header.php. Can you tell me how to fix the links? Thanks

 

	<tr>

  <td

style="background-color: rgb(0, 0, 0);">

  <div

style="background-color: rgb(255, 255, 0);" align="center"><a

href="../index.htm">Home</a>

| <a href="../aboutus.htm">About

Us</a> | Catalog | <a

href="../contactus.htm">Contact Us</a></div>

  </td>

</tr>

Posted

By adding ../ to your anchors, your links are pointing up one level from your store directory.

 

Creating links using HTML, you run a risk, albeit small, of your customers losing their session. You should create links using the osC tep_href_link() function and constants. So they should look something like:

 

<a href="<?php echo tep_href_link(FILENAME_CONTACT_US); ?>"><?php echo BOX_INFORMATION_CONTACT; ?></a>

Archived

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

×
×
  • Create New...