One last thought.. There's another reason why your solution is not necessarily the best solution..
Category icons appear in a few primary locations:
- To display the top level categories on the main page (if the appropriate settings are used in the admin)
- To display the sub-categories on the category display (if sub categories are used)
- Product Information Page
- Category Product Listing Page
Your solution will remove the category icons from EVERYWHERE they appear in ZenCart. At the risk of stating the obvious, honestly, the EASIEST way to have no category icons appear anywhere in ZenCart is to simply NOT add an image to the category (or sub-catgory) at all when you create it.
While what you suggest as a solution appears to solve YOUR immediate problem, I suspect it does so because your categories still have a reference to an old category image that was not cleared completely. (Again since you have not posted a link.. I am GUESSING, but I believe if you do clean up your categories, that you will find your issue will be resolved) If you want to control where the category icons appear, there are much better ways to do this than what you suggest.
The options I posted can be used to control the appearance of the category icons on the
Product Information Page &
Category Product Listing Page. The top level categories appearing on the main page are controlled by the admin, and sub-categories icons appearing on the category pages can be controlled by simply not adding an image to your sub-categories when you create them.
That said the only thing I CANNOT find is an admin or CSS solution for NOT displaying the category or sub-category icon images on the category displays
while still alllowing category icons to be displayed on the Product Information & Category Product Listing pages.
It appears that the display of category icons on the category displays (top level or sub-categories) is an all or none option unless you edit the
tpl_main_page.php file so that only the category name but not the category image appears on the category & sub-category displays.