Hi Jerome,
CMS uses build menu in function.php - ' jak_build_menu () '.
this menu have only one problem. If I have active subcategory then main category isn't active
Example:
<li> /* main category */
<ul>
<li class="active"> </li> /* subcategory */
</ul>
</li>
What can i do for active main category in function?
Good evening,
You could achieve this with jQuery to add the class active to the previous li.
This is bad answer, why Jquery !! We have php function :-)
Why a bad answer? You will need it for your template the easiest way is to use jQuery and add an active class to the main category.
Of course you can change the complete function to suit your needs but I can tell you it won't be an easy one because you don't have the main category name anywhere when calling a sub category. The easiest and quickest way is to use a Javascript function.