Images of subcategories as data attributes in menu

If there is a subcategory image set in admin, respective menu items have this image URL available in data attribute data-image. This allows you to implement visually richer menus in any template.

<ul class="menu-level-2">
    <li class="menu-item-702">
        <a href="/saty-a-sukne/" title="Šaty a sukně" data-image="">
            <span>Šaty a sukně</span>

Post navigation