SiliconFusion Posted July 19, 2004 Posted July 19, 2004 can u feel the n00bness, lol. how do i add another hyperlink where 'My Account | Cart Contents | Checkout ' are, but outside of oscommerce - ie - to another site. thanks for any help
Mary B. Posted July 19, 2004 Posted July 19, 2004 Find this line in includes/header.php (around Line 64): <td align="right" class="headerNavigation"><?php if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?></a> | <?php } ?><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a> | <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a> | <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a> </td> Add your link to the beginning of the line like this: <td align="right" class="headerNavigation"><a href=http://yourlink.com>Your Link Text</a> | <?php if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?></a> | <?php } ?><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a> | <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a> | <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a> </td> Or add your link to the end of the line like this: <td align="right" class="headerNavigation"><?php if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?></a> | <?php } ?><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a> | <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a> | <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a> <a href=http://yourlink.com>Your Link Text</a> | </td> They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. ~ Benjamin Franklin, 1759. տլ
nthmystery Posted September 24, 2005 Posted September 24, 2005 :) Thanks that worked for me too! If I want a new window to open to the external website what would I add or change?
nthmystery Posted September 24, 2005 Posted September 24, 2005 thanks, it worked <{POST_SNAPBACK}> I changed colors on my stylesheet from default black to white for the header links. When I add links this way the original black color shows up. What do I need to do to change the color of the new link to white?
nthmystery Posted September 30, 2005 Posted September 30, 2005 I changed the colors of my header and the default color for type on the header is black. I would like to change the type color to white. How do I do this so it matches the rest of the type on the header? I changed the header links on the stylesheet. Maybe I'm just retarded and not seeing the problem, but would appreciate some more help.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.