Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help Needed: Change content Category text only


Guest

Recommended Posts

I have managed to change the background colour of just the category box by changing the following code in the includes/boxes/categories.php file

 

FROM:

<!-- categories //-->
	  <tr>
		<td>

 

TO:

<!-- categories //-->
	  <tr>
		<td bgcolor="#68a5be" >

 

This has given me the correct background colour i need just for the category box.

 

Now i want to change the text in the category box only to white. I have tried a number of ways but cant seem to find the right place to change it.

 

Is it possible to change this in the same file or will it require a number of pages to be changed. Hopefully i can just add something to the code in the categories.php file to accomplish this.

 

I have tried adding an extra class in the style sheet but when it come to finding where the class is defined on the catergories.php page i couldnt find it.

 

I have read through pages of documentation and really am stuck on this one.

 

Can someone please suggest away of doing this.

 

Thanks in advance

Link to comment
Share on other sites

find this in line 20

$categories_string .= '<a href="';

replace by this:

$categories_string .= '<a class="your_new_class" href="';

 

define a new class

A.your_new_class {
 color: #FFFFFF;
 text-decoration: none;
}

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...