timcrafton Posted August 2, 2004 Posted August 2, 2004 Hi, maybe too early in the morning or something, but can someone tell me how to add a text link on the header bar on my store. I would like it to be with the "My Account" "Cart Contents" etc. links. I know this is an simple thing to do, but I cannot seem to figure it out, so any help would be appreciated. TC
Mary B. Posted August 2, 2004 Posted August 2, 2004 Here is the table row in catalog/includes/header.php that contains your breadcrumb links and the header bar links: <tr class="headerNavigation"> <td class="headerNavigation"> <?php echo $breadcrumb->trail(' » '); ?></td> <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> </tr> Add a link to the end of the bar like this: <tr class="headerNavigation"> <td class="headerNavigation"> <?php echo $breadcrumb->trail(' » '); ?></td> <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="YOUR LINK HERE">YOUR LINKED TEXT HERE</a> </td> </tr> They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. ~ Benjamin Franklin, 1759. տլ
lisalovlee33 Posted August 12, 2004 Posted August 12, 2004 Hi, I feel stupid but I can't seem to figure this out. I added an extra link (contact us) to the header bar in the front of My Account. But the color is black. Can someone tell me how to change it to white (the default color for the rest of the items there) My code looks like this: <td class="headerNavigation"> <?php echo $breadcrumb->trail(' » '); ?></td> <td align="right" class="headerNavigation"><a href="http://mysite.com/contact_us.php">Contact Us</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> </tr>
Jan Zonjee Posted August 12, 2004 Posted August 12, 2004 <td align="right" class="headerNavigation"><a href="http://mysite.com/contact_us.php">Contact'>http://mysite.com/contact_us.php">Contact Us</a> Try putting class="headerNavigation" after "http://mysite.com/contact_us.php".'>http://mysite.com/contact_us.php". Because of sessions/cookies you are probably better off using <a href="<?php echo tep_href_link('contact_us.php'); ?>" class="headerNavigation"> instead of: <a href="http://mysite.com/contact_us.php" class="headerNavigation">
lisalovlee33 Posted August 12, 2004 Posted August 12, 2004 Thanks for the reply. It Changed the color to white, but it doesn't have a link to it and this is what I see on the bar: Contact Us | class="headerNavigation">My Account | Cart Contents | Checkout My code is [/code] <td align="right" <a href="<?php echo tep_href_link('contact_us.php'); ?>" class="headerNavigation">Contact Us</a> | class="headerNavigation"><?php if (tep_sessio :(
Jan Zonjee Posted August 12, 2004 Posted August 12, 2004 <td align="right" <a href=" ..... You haven't closed the <td> , looks like... <td align="right" <a href="<?php echo tep_href_link('contact_us.php'); ?>" class="headerNavigation">Contact Us</a> | class="headerNavigation"> should be: <td align="right" class="headerNavigation"><a href="<?php echo tep_href_link('contact_us.php'); ?>" class="headerNavigation">Contact Us</a> |
Recommended Posts
Archived
This topic is now archived and is closed to further replies.