This is a discussion on change breadcrumb trail text colour within the osCommerce 2.2 Installation Help forums, part of the osCommerce 2.2 Forums category; I want to take the breadcrumb text off the Navigation header bar and have it sit below the grey bar ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| I want to take the breadcrumb text off the Navigation header bar and have it sit below the grey bar and restyle it in black text. I have edited the header.php by creating a new table as shown in code below <table border="0" width="468" cellspacing="0" cellpadding="1"> <tr class="headerNavigation"> <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> &nbsp;|&nbsp; <?php } ?><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a> &nbsp;|&nbsp; <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a> &nbsp;|&nbsp; <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a> &nbsp;&nbsp;</td> </tr> </table> <table border="0" width="468" cellspacing="0" cellpadding="1"> <tr class="main"> <td "align left" class="main">&nbsp;&nbsp;<?php echo $breadcrumb->trail(' &raquo; '); ?></td> </tr> </table> Only the >> appear in black but not the text I think the text is still white the because the links still work. I've tried changing the style sheet by creating the following TR.main { background: #ffffff; } TD.main { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #000000; } A.main { color: #000000; } A.main:hover { color: #000000; } any suggestions? James |
| Sponsored Links | ||
| ||
|
#2
| |||
| |||
| I finally worked out how to do it. In catalog/includes/classes/breadcrumb.php There is a class "headerNavigation" $trail_string .= '<a href="' . $this->_trail[$i]['link'] . '" class="headerNavigation">' . $this->_trail[$i]['title'] . '</a>'; I changed that class to "main" $trail_string .= '<a href="' . $this->_trail[$i]['link'] . '" class="main">' . $this->_trail[$i]['title'] . '</a>'; That did the trick Thanks for listening korsh |
| Sponsored Links | ||
| ||
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| <?php echo $breadcrumb->trail(' » '); | kuzak | osCommerce 2.2 Modification Help | 2 | 09-29-2005 09:16 AM |
| Change text colour for hyperlinks in boxes | ChocolateTeapot | osCommerce 2.2 Modification Help | 1 | 04-25-2005 11:05 AM |
| Variables contained in Breadcrumb Trail | carab | osCommerce 2.2 Modification Help | 3 | 10-17-2004 11:46 AM |
| Edit Breadcrumb Trail | a_sap | osCommerce 2.2 Modification Help | 1 | 07-11-2004 07:57 AM |
| editing breadcrumb trail | pedrump | osCommerce 2.2 Modification Help | 2 | 05-12-2004 09:40 AM |