Display particular category image in stencil bigcommerce

浪子不回头ぞ 提交于 2019-12-12 03:45:14

问题


I am working in Mega menu and i have add some new functionality i have display less than two category image in my mega menu how can i display? I am use stancil framwork.

i have use this code:

<ul class="col-2">
    <li class="menuFeat">
        <a href="#">Image:
        {{category.subcategories.image}}    
        </a>
    </li>

</ul>

project link: http://ptg6.mybigcommerce.com


回答1:


As I understood you want to show each category image into your mega menu so let's go if I am right.

Step 1: Open your admin end and then open your themes file editor I hope you know well how to open it.

Step 2 Go to components-> common -> navigation-list.html

Step 3 replace<a class="navPage-subMenu-action navPages-action" href="{{url}}">{{name}}</a> with this one <a class="navPage-subMenu-action navPages-action" href="{{url}}">{{name}}<img src="{{getImage image "thumbnail"}}"></a>

check screenshot http://prntscr.com/fhocrk

and it will look like this one http://deepak-diwan-s-store.mybigcommerce.com/

check all menus in my store, one more thing category should have images assigned from the back end.



来源:https://stackoverflow.com/questions/44405348/display-particular-category-image-in-stencil-bigcommerce

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!