"I want to improve my site navigation by using CSS to style the link pointing to the current category differently (e.g. by having the link to the active category highlighted in a different color). Is there an easy way to use Nucleus to generate a unique CSS class based on the currently active category?"
Use the new skin variable
to generate your CSS class. This variable will return either a "yes" value if the current category is active or a "no" value if the category is not the currently active category.
In the "Category List Item" section of your template
, put something like this in the
tag you are using to generate your category list (e.g. a
file, make sure you define the CSS classes
(for the current active category) and
(for all other categories) as desired.
Original forum thread (thanks, ftruscot!):
Skins | submitted by Leng
on 2009.Mar.16 | 7441 views
Total votes: 11 - Rating: 10.00