This topic has 3 replies, 3 voices, and was last updated 7 months, 1 weeks ago ago by Andrew Mitchell
I apologize, I was previously helped in the thread: https://www.8theme.com/topic/is-it-possible-to-remove-images-from-subcategories-but-not-everywhere/#post-393069 , but is it possible to make edits so that not one, but 2 or more display covers? I added a second category, but it doesn’t seem to work:
if(!is_product_category(‘multgeroi’,’tsvety’)) {
remove_action(‘woocommerce_before_subcategory_title’, ‘woocommerce_subcategory_thumbnail’, 10);
}
Translated with DeepL.com (free version)
Hi @Goostaf,
You can try with this code:
if( !is_product_category( array('multgeroi','tsvety') ) ) {
remove_action('woocommerce_before_subcategory_title', 'woocommerce_subcategory_thumbnail', 10);
}
For more information, please take a look at this: https://developer.woocommerce.com/docs/conditional-tags-in-woocommerce/.
Best Regards,
8Theme’s Team
Dear Goostaf,
We trust our theme is enhancing your experience. Taking a brief moment to rate it with a glowing 5 stars on ThemeForest would be immensely appreciated. Your feedback holds significant value for us.
Click here to rate now: https://themeforest.net/downloads
Thank you sincerely for your ongoing support!
Best Regards,
The 8Theme Team
The issue related to '‘Is it possible to remove images from subcategories, but not everywhere?’' has been successfully resolved, and the topic is now closed for further responses