Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How can I...change the color of the subcategory inside "Categories"


huntwolfe

Recommended Posts

I have been fairly successful at customizing everything I feel is needing attention until now.

 

I want to get the selected subcategory to be highlighted in a different color so that users will see more readily the category that they are presently in.

 

As an example;

 

Category 1

Category 2

Category 3

Subcategory 1

Subcategory 2
(this is the category that you are currently in)

Subcategory 3

Category 4

Category 5

 

I did find the portion of code within the "catalog/included/boxes/categories.php" that shows the command to make the subcategory BOLD, and, to me, this would be a logical place to overide the .boxText class, and select a new class for that particular portion, then set back to normal, but I don't know how.

 

Is this making sense? Let me know what you think.

 

Thanks

Link to comment
Share on other sites

Thank you for the reply and idea.

 

I have tried adding a span style, and it created a T_STRING error.

 

I used the following code, <span style='color:"red"'> , but I did not substitute the bold tag, I simply added it afterward.

 

Let me know your ideas.

 

Thank you.

Link to comment
Share on other sites

Thank you for the reply and idea.

 

I have tried adding a span style, and it created a T_STRING error.

 

I used the following code, <span style='color:"red"'> , but I did not substitute the bold tag, I simply added it afterward.

 

Let me know your ideas.

 

Thank you.

That's because you are nesting single quotes inside the php code....

Community Bootstrap Edition, Edge

 

Avoid the most asked question. See How to Secure My Site and How do I...?

Link to comment
Share on other sites

That's because you are nesting single quotes inside the php code....

 

THAT'S IT!!!! You rock. Thank you for the tip. I added the code<span style= color:"red"> after the <b>, with a </span style> after the </b> and it works perfect.

Link to comment
Share on other sites

  • 2 months later...

Hello,

 

This looks like exactly what I'd like to do... style the subcategories differently. Would you mind posting a bit more information about exactly what I'd need to edit in categories.php? Thank you.

 

Tatty

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...