Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Is there a way to change the color of a single link?


acbatchelor

Recommended Posts

Posted

I just want to change the color of the name of the products on the product listing pages. I don't want to change the color of all the links throughout the site.

Posted

          case 'PRODUCT_LIST_NAME':
           $lc_align = '';
           if (isset($HTTP_GET_VARS['manufacturers_id'])) {
             $lc_text = '<a [color="#FF0000"][b]class="new"[/b][/color] href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing['products_id']) . '">' . $listing['products_name'] . '</a>';
           } else {
             $lc_text = ' <a [color="#FF0000"][b]class="new"[/b][/color] href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . $listing['products_name'] . '</a> ';
           }
           break;

Sample stylesheet code:

 

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

A.new:hover {
 color: #000000;
 text-decoration: underline;
}

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 >

Posted

thanks, i've been trying to do this for a while. i got close to figuring it out own my own but not quite.

Archived

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

×
×
  • Create New...