Support Tickets - CMS - frontend build menu

CMS - frontend build menu

CMS 11.02.2017 2133 Feedback Status: Closed Solution: Yes bluesatkv

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


<li> /* main category */
<li class="active"> </li> /* subcategory */

What can i do for active main category in function?

Replies (3)

  • avatar Jerome

    Good evening,

    You could achieve this with jQuery to add the class active to the previous li.

    11.02.2017 0
  • avatar bluesatkv

    This is bad answer, why Jquery !! We have php function :-)

    12.02.2017 0
  • avatar Jerome

    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.

    12.02.2017 0