...
Admin settings
In order to add a category icon enter Catalog -> Categories -> [category]
Inside Content tab, there is an additional input that allows uploading an image.
...
Frontend
In order to show icons in the main desktop navigation set options in theme-creativeshop/src/MageSuite_Navigation/layout/default.xml
Code Block |
---|
<referenceBlock name="navigation.main">
<arguments>
<argument name="show_category_icon_subcats" xsi:type="boolean">true</argument>
<argument name="show_category_icon_root" xsi:type="boolean">true</argument>
</argument>
</referenceBlock> |
After adding an icon in the admin panel to all or some categories and clearing the navigation cache, the icon will be visible next to the category. An additional class is added to easily style items with an icon.
...
In order to show icons in the mobile off-canvas navigation set options in magesuite-navigation/view/frontend/layout/navigation_mobile_index.xml
For now, for mobiles onlu subcategories can have an icon.
Code Block |
---|
<referenceBlock name="navigation.offcanvas">
<arguments>
<argument name="show_category_icon_subcats" xsi:type="boolean">true</argument>
</argument>
</referenceBlock> |
...
Note |
---|
TODO - BE documentation and review of documentation is needed |