Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Changing Categories Infobox


hawken

Recommended Posts

Posted

Hi, I am trying to change the way categories infobox is displayed.

 

Currently, if there's 10 sub categories, and you are currently viewing one, that category name is in bold in the infobox, and the other 9 are normal. There are 2 changes I would like to make, but am not sure how.

 

1.) Make it display only the category you are viewing in the infobox (and/or it's parent category) and not the other 9 sub-categories.

2.) Instead of it just being bold, also give it a background color to make t stand out more.

 

I would appreciate a solution for either!

 

Thanks.

Posted

Hi, I am trying to change the way categories infobox is displayed.

 

Currently, if there's 10 sub categories, and you are currently viewing one, that category name is in bold in the infobox, and the other 9 are normal. There are 2 changes I would like to make, but am not sure how.

 

1.) Make it display only the category you are viewing in the infobox (and/or it's parent category) and not the other 9 sub-categories.

2.) Instead of it just being bold, also give it a background color to make t stand out more.

 

I would appreciate a solution for either!

 

Thanks.

 

The 2nd change should not be too difficult. Just look in the code (catalog\includes\boxes\categories.php) for <b> and replace it with the styling that you want.

Posted

The 2nd change should not be too difficult. Just look in the code (catalog\includes\boxes\categories.php) for <b> and replace it with the styling that you want.

 

Thanks Hotclutch, that is what I thought as well, but for some reason it didnt work. Just to test, I replaced the <b></b> to <i></i> to see if that would change the code, but the text was still bold, not italic.

Posted

Thanks Hotclutch, that is what I thought as well, but for some reason it didnt work. Just to test, I replaced the <b></b> to <i></i> to see if that would change the code, but the text was still bold, not italic.

 

Try this:

 

replace <b> with <span class="Test">

replace </b> with </span>

 

Then add at the bottom of stylesheet.css

 

.Test {

font-family: Verdana, Arial, sans-serif;

font-weight: bold;

font-style: italic;

font-size: 11px;

color: #990033;

text-decoration: none;

}

Posted

Try this:

 

replace <b> with <span class="Test">

replace </b> with </span>

 

Then add at the bottom of stylesheet.css

 

.Test {

font-family: Verdana, Arial, sans-serif;

font-weight: bold;

font-style: italic;

font-size: 11px;

color: #990033;

text-decoration: none;

}

 

Thank you, that looks like something that will work. When I get home from work I'm going to try that and see. I'll pos back with the update. Thanks!

Posted

Thank you, that looks like something that will work. When I get home from work I'm going to try that and see. I'll pos back with the update. Thanks!

 

Tried it and nothing. Doesn't affect that text, which is very strange! Thanks for the suggestion though, I thought for sure that would work.

Archived

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

×
×
  • Create New...