That’s a paid theme, I can’t check a paid theme.
Most likely the theme has it’s own overriding image. But also checks for a featured image. And then picks the wrong one.
If you don’t need the featured image on your products (but only on blog posts or whatever) you can exclude all products by adding the following code.
<?php
function dfi_posttype_woocommerce_products ( $dfi_id, $post_id ) {
$post = get_post($post_id);
if ( 'product' === $post->post_type ) {
return 0; // no image
}
return $dfi_id; // the original featured image id
}
add_filter( 'dfi_thumbnail_id', 'dfi_posttype_woocommerce_products', 10, 2 );
Usualy the functions.php
of your theme is a good place. If you don’t want to touch that put it in wp-content/mu-plugins/no-product-dfi.php
-
This reply was modified 6 years, 10 months ago by
Jan-Willem.