Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

A not so simple css problem


EZPA55

Recommended Posts

The link: http://www.jigsawrugs.com/catalog/index.php?cPath=22

You will see the design name of each product is a link and in white, like the lists to the left. I need to change it to black.

 

I can think of a few solutions. One would be to specify the link within the stylesheet.css, problem here is i'm not sure it's path.

The other would be to just change the text to static rather than a link in turn taking on the default color (black). Again problem being I'm not sure where that specific code is located.

Some direction/guidance would be very helpful.

 

Thanks for the help

Link to comment
Share on other sites

In your stylesheet you will need to add a NEW a class such as

 

.newclass a {

color: black;

}

 

 

Then add the "newclass" class to the link that you want to change the color for.

Link to comment
Share on other sites

In your stylesheet you will need to add a NEW a class such as

 

.newclass a {

color: black;

}

Then add the "newclass" class to the link that you want to change the color for.

 

 

 

Yea I understand the css class, the problem is the product list is generated with the php. I'm not sure where to add the new class.

Link to comment
Share on other sites

My site is modified a long time ago so I think it is in catalog/includes/product_listing.php.

 

Look for

 

		  case 'PRODUCT_LIST_MANUFACTURER':
		$lc_align = '';
		$lc_text = ' <a href="' . tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $listing[$x]['manufacturers_id']) . '">' . $listing[$x]['manufacturers_name'] . '</a> ';
		break;

 

If I am right you will want to add the class just after the <a.

 

<a class="newclass"

Link to comment
Share on other sites

My site is modified a long time ago so I think it is in catalog/includes/product_listing.php.

 

Look for

 

		  case 'PRODUCT_LIST_MANUFACTURER':
		$lc_align = '';
		$lc_text = ' <a href="' . tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $listing[$x]['manufacturers_id']) . '">' . $listing[$x]['manufacturers_name'] . '</a> ';
		break;

 

If I am right you will want to add the class just after the <a.

 

<a class="newclass"

 

 

THANKS

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...