osCmax v2.5 User Manual
Results 1 to 2 of 2

change breadcrumb trail text colour

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 ...

      
  1. #1
    New Member
    Join Date
    Sep 2003
    Posts
    7
    Rep Power
    0


    Default change breadcrumb trail text colour

    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>  |  <?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>
    </table>

    <table border="0" width="468" cellspacing="0" cellpadding="1">
    <tr class="main">
    <td "align left" class="main">  <?php echo $breadcrumb->trail(' » '); ?></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

  2. #2
    New Member
    Join Date
    Sep 2003
    Posts
    7
    Rep Power
    0


    Default

    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

Similar Threads

  1. <?php echo $breadcrumb->trail(' &raquo; ');
    By kuzak in forum osCommerce 2.2 Modification Help
    Replies: 2
    Last Post: 09-29-2005, 09:16 AM
  2. Change text colour for hyperlinks in boxes
    By ChocolateTeapot in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 04-25-2005, 11:05 AM
  3. Variables contained in Breadcrumb Trail
    By carab in forum osCommerce 2.2 Modification Help
    Replies: 3
    Last Post: 10-17-2004, 11:46 AM
  4. Edit Breadcrumb Trail
    By a_sap in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 07-11-2004, 07:57 AM
  5. editing breadcrumb trail
    By pedrump in forum osCommerce 2.2 Modification Help
    Replies: 2
    Last Post: 05-12-2004, 09:40 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •