aditya369 Posted January 23, 2012 Share Posted January 23, 2012 (edited) Hi, In home category page, it is showing all the subcategories of home with images. I would like to display this portion in header. Can any one help me how to do this?? I'm able to get the subcategory names... but not images. Screen shot attached.... Thanks, Aditya Hello All, finally, I have solved this on my own.. Here are the steps that I have followed.. Open "PATH_TO_YOUR_FOLDER/themes/THEME_NAME/header.tpl" Paste the below code where ever you want in the header.tpl file <div class="content-main"> <ul class="p-models"> {foreach from=$blockCategTree.children item=child name=blockCategTree} <li> <a href="{$child.link}"> <h3>{$child.name}</h3> <img src="{$link->getCatImageLink($category->link_rewrite, $child.id, 'category')}" height="164" width="285"/> </a> </li> {/foreach} </ul> </div> Hope This helps some one... Thanks, Aditya Edited January 24, 2012 by aditya369 (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts