Home / Forums / WoodMart support forum / Compatibility Problem With WooCommerce Auto Category Product Thumbnails
Home › Forums › WoodMart support forum › Compatibility Problem With WooCommerce Auto Category Product Thumbnails
Compatibility Problem With WooCommerce Auto Category Product Thumbnails
- This topic has 9 replies, 2 voices, and was last updated 5 years ago by
Artem Temos.
-
AuthorPosts
-
January 11, 2021 at 10:45 pm #257519
[email protected]ParticipantHi,
I’ve installed WooCommerce Auto Category Product Thumbnails on my website in order to automatically use a product thumbnail as a category thumbnail if no category thumbnail is set.
It’s working with all the other themes but there is a problem with the Woodmart theme.
The original placeholder is still showing up under the generated category thumbnail. Please check my screenshot for more details.
Thanks
January 11, 2021 at 10:46 pm #257520
[email protected]ParticipantJanuary 12, 2021 at 7:13 am #257560
Artem TemosKeymasterHello,
Try to add the following PHP code snippet to the child theme functions.php file to fix this
add_action( 'init', function() { add_action( 'woocommerce_before_shop_loop_item_title', 'woocommerce_template_loop_product_thumbnail', 10 ); remove_action( 'woocommerce_before_shop_loop_item_title', 'woodmart_template_loop_product_thumbnail', 10 ); }, 1100 );Regards
January 12, 2021 at 3:11 pm #257745
[email protected]ParticipantHi,
Thanks for your reply. I’ve added this snippet to the child theme functions.php file and it’s still showing the default placeholder under the generated image.
January 12, 2021 at 3:13 pm #257747
Artem TemosKeymasterHello,
Could you please disable all plugins that are not related to our theme and provide us your admin access so we could check it? Also, switch to the default WordPress theme so we can compare how it works.
Thank you in advance
January 12, 2021 at 3:32 pm #257758
[email protected]ParticipantHi,
I’ve enabled the default Storefront theme. I’ve also disabled the snippet in functions.php.
January 12, 2021 at 3:34 pm #257759
[email protected]Participantftp
January 12, 2021 at 3:52 pm #257763
Artem TemosKeymasterPlease, use our Private content field to post your website access. Also, try to replace the previous code with the following one
add_action( 'init', function() { remove_action( 'woocommerce_before_subcategory_title', 'woodmart_category_thumb_double_size', 10 ); }, 1100 );January 12, 2021 at 4:51 pm #257785
[email protected]ParticipantIt’s working! Thank you very much for your good support. I will recommend it!
Thanks again & have a great day.
January 13, 2021 at 6:59 am #257889
Artem TemosKeymasterGreat, you are welcome! Feel free to contact us if you have any questions.
-
AuthorPosts
- You must be logged in to create new topics. Login / Register