hawken Posted October 28, 2010 Posted October 28, 2010 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.
Hotclutch Posted October 28, 2010 Posted October 28, 2010 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.
hawken Posted October 28, 2010 Author Posted October 28, 2010 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.
Hotclutch Posted October 28, 2010 Posted October 28, 2010 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; }
hawken Posted October 28, 2010 Author Posted October 28, 2010 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!
hawken Posted October 29, 2010 Author Posted October 29, 2010 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.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.