Всем привет. Как убрать каталог в мобильной версии который находится с блоке боксов?
Что делаю:
В файле index.html ставлю условия
{if !$smarty.session.isMobile}
{if $box_menu_cat_id == 0}<!-- noindex -->{/if}
<div class="box_item hide-on-mobile">
<div class="box_item_head">
<i class="icon-mode-grid"></i> {$smarty.const.TEXT_CATEGORY}
</div>
<div class="box_item_content">
{$options.parents = $box_menu_cat_id}
{$options.level = $LEVEL_BOX_MENU}
{$options.showEmptyCategories = true}
{$options.showCount = $SHOW_COUNT_BOX_MENU}
{$options.showImg = $SHOW_IMG_BOX_MENU}
{$options.useCropImg = true}
{$options.wrap_first_cat = false}
{$options.imgWidth = 90}
{$options.imgHeight = 90}
{$options.classTopUl = 'mega_menu_box'}
{$options.classCurrent = 'active'}
{$mega_menu->get_menu_tree($options)}
</div>
</div>
{if $box_menu_cat_id == 0}<!-- /noindex -->{/if}
{/if}
{/if}
Не помогает. Каталог все равно отображается. Так же добавил класс hide-on-mobile, все равно не работает. Возможно каталог где-то отключается? В админке тоже не нашел.