• How to remove subcategories images from Product Category page

    I added the following code in functions.php of theme, but it doesn’t work

    remove_action( 'woocommerce_before_subcategory_title', 'woocommerce_subcategory_thumbnail', 10 );
Viewing 2 replies - 1 through 2 (of 2 total)
  • Stef

    (@serafinnyc)

    Hello @tonyzyc What theme are you using? If the hook you provided isn’t working you can always try CSS instead.

    Hey there! Thanks for contacting us. I’m happy to help you.

    If you want to hide the image for all categories and subcategories, you can use the CSS code below:

    .woocommerce ul.products li.product-category a img {
        display: none;
    }

    But it is not possible to hide only the subcategory images with CSS.

    Having said that, it is possible to do it with custom code, as you mentioned.

    While we can’t provide support for code customization as per our support policy, we do our best to offer advice and direct you to appropriate resources.

    You can visit the WooCommerce Facebook group or the #developers channel of the WooCommerce Community Slack. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there too.

    Please let us know if there’s anything else we can do to help or if you have any questions.

    Have a wonderful day!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Remove subcategories images’ is closed to new replies.