Christopher Short Posted August 9, 2014 Share Posted August 9, 2014 I would like to remove the images not available box from sub categories. How can I do this? Quote Link to comment Share on other sites More sharing options...
bsmither Posted August 10, 2014 Share Posted August 10, 2014 Let's use the Kurouto skin to demonstrate. In that skin's template file content.category.php, lines 12-17 is the HTML code that shows the sub-cat's image and link. Cubecart will automatically show a "No Image" if that (sub)category does not have its own image. Make this edit: Was: <div class="subcategory"> <a href="{$subcat.url}" title="{$subcat.cat_name}"> <img src="{$subcat.cat_image}" alt="{$subcat.cat_name}" /> </a> <a href="{$subcat.url}" title="{$subcat.cat_name}">{$subcat.cat_name}</a> </div> Now: <div class="subcategory" style="height:30px;">{* Without image, can reduce height of this div *} <a href="{$subcat.url}" title="{$subcat.cat_name}"> {* <img src="{$subcat.cat_image}" alt="{$subcat.cat_name}" /> *} </a> <a href="{$subcat.url}" title="{$subcat.cat_name}">{$subcat.cat_name}</a> </div> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.