Hi. I see when I click on a category or subcategory. K2 php will add a class="activeCategory" to that category. But is there any way I can modify the php so it will also add a "activeparrent" class to the parrent category? I can then use this class to add css styles.
For example:
<div class="k2CategoriesListBlock">
<ul level0>
<li>
<ul class="level1 activeparrent" I want to add a class to only parent that have activeCategory children >
<li class="activeCategory"></li>
<li></li>
<li></li>
</ul>
<li>
<ul class="level1">
<li></li>
</ul>
</li>
</ul>
</div>
Any sort of help is greatly appreciated. Thank you.
For example:
<div class="k2CategoriesListBlock">
<ul level0>
<li>
<ul class="level1 activeparrent" I want to add a class to only parent that have activeCategory children >
<li class="activeCategory"></li>
<li></li>
<li></li>
</ul>
<li>
<ul class="level1">
<li></li>
</ul>
</li>
</ul>
</div>
Any sort of help is greatly appreciated. Thank you.