gjh42:
Add to your stylesheet
#referencesidebox a.box-body {color: #ff0000;}
Post your current version of the module file.
Outstanding! That did the trick. :clap:
Just added my box & text color to your code, and looks great! Guess I'm not really understanding how it knows about #referencesidebox, as it is only referenced in the stylesheet, but the posted class in the module file references box-body, when there are already other variations of the box-body class!
That's my inexperience, but in any case, it works!
gjh42:
I have noticed an item that needs to be added to the test for current page. The test as written only checks for category/product listing pages, but not for product info pages in the category. Change this
(($current_page_base == 'index' and $cPath == '18_56')? ' class="current"': '')
to this
((($current_page_base == 'index' or $current_page_base == 'product_info') and $cPath == '18_56')? ' class="current"': '')
to get```php
$define_sidebox_ref[] = '<a href="index.php?main_page=index&cPath=18_56"' . ((($current_page_base == 'index' or $current_page_base == 'product_info') and $cPath == '18_56')? ' class="current"': '') . '>2011 Code Books & Tabs</a>';
Great, this worked like a charm! I didn't notice that it didn't work on the product page until your last post!
So, all is now great with the highlighting in the "reference sidebox", but one more thing I would like to do....
**(Thank you for your patience in showing me how to do this!)**
Now that the "whole box" is highlighted in the reference sidebox, it probably should also look the same in the Main Category box!
I tried using your code that you gave in an earlier post as below...
#categories a {display: block;}
#categories a+br {display: none;}
But this time it highlighted "All" of the "top-categories" to the current selected color! Probably just missing something simple again! :wacko: