Remove category image from WooCommerce shop page display

Author: | Posted in WordPress 2 Comments

If you have selected ‘Show categories & subcategories’ in Shop Page Display drop-down list, categories and subcategories will be displayed on default shop page of your WooCommerce store along-with product count and category/subcategory image.

woocommerce-display-shop

If you don’t want to have category/subcategory images on shop page, you can do following hack which involves editing WooCommerce template.

Open ‘content-product_cat.php’ file and find following code:

add two slashes in the beginning of this line to ‘comment’ it.

Save the file and check shop page.

  • Julien Ouellette

    Where do i find the content-product_cat.php ?

  • Simon B?

    The right way to do this is to go on your function.php and remove the action with this code :

    remove_action(‘woocommerce_before_subcategory_title’,’woocommerce_subcategory_thumbnail’,10);