Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Changing a specific Text Color...


wickedtomkat

Recommended Posts

In your style sheet, change this:

 

headercart {
 color: #FFFFFF;
 }

To:

 

headercart {
  color: #ffffff;
  }

A.headercart {
  color: #ffffff;
  }

A.headercart:hover {
  color: #ffffff;
  text-decoration: none;
  }

In the code for headercart.php, make this one change

 

<?php /* Added: MOD - Cart in Header */ ?>
 <div align="center"><font face="Arial"><span class="headercart"><a class="headercart" href="shopping_cart.php">Your Cart Contains <strong><?php echo $cart->count_contents()?> items</strong></span></a><span class="headercart"><br>
  Sub Total: <?php echo $currencies->format($cart->show_total())?></font>
<?php /* Added: MOD - Cart in Header */ ?>

All I change there was this:

 

<a href="shopping_cart.php">

To:

 

<a class="headercart" href="shopping_cart.php">

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Ok one more quick question.. I'm working on getting the

--- $myaccountlogoff | $cartcontents | $checkout ----

to look right now.. ad I think with what I've learned so far I can fix it.. maybe.. lol.

 

but where do I find the php code to change these at.. Like I want to change the text color on these to white.. and what i've learned so far I can probaly do it by changing the code to find a stylesheet class.. which should be easy. if i just knew where ot look.

Link to comment
Share on other sites

That would be in your /catalog/includes/header.php file

 

Specifically this line:

 

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

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...