Display particular category image in stencil bigco

2019-09-19 00:39发布

问题:

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.



标签: bigcommerce