Loading...
 
Themes

Themes


Adding custom css classess to topBar menus based on category

I'd like to know how this can be done. The point is to have different look on the topbar menu items when you are inside that category. Adding conditionals doesn't seem to do anything

smarty
Copy to clipboard
if isset($objectsCategoryId in_array(<catId> ,$objectsCategoryId)}


based on this idea.

smarty
Copy to clipboard
{if !empty($objectCategoryIds)} NOT categorized {else} AM categorized {/if}


One solution could be doing separate menus for each category and then using them only in that category, but that seems bit repetative solution and moderators would get confused with tens of similar menus.

There are no comments at this time.