katman1971 Posted October 1, 2009 Posted October 1, 2009 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>
spax Posted October 1, 2009 Posted October 1, 2009 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>
Recommended Posts
Archived
This topic is now archived and is closed to further replies.