Answer the question
In order to leave comments, you need to log in
Why are some images broken on Wordpress, not displayed?
Wordpress some images are broken, not displayed.
Through acf, I did the substitution of images with a background (they go by default) to without a background // on pages, categories, equipment available, etc.
I suspect that there is such a construction in functions.php // but not a fact
function filter_woocommerce_product_get_image( $image, $_this, $size, $attr, $placeholder ) {
$fild=get_field('cat_file', $_this->id);
if(isset($fild['sizes']['medium'])) {
$image='<img width="300" height="169" src="'.$fild['sizes']['medium'].'" class="attachment-woocommerce_thumbnail size-woocommerce_thumbnail" alt="" sizes="(max-width: 300px) 100vw, 300px">';
} else {
$image = $image;
}
return $image;
}
Answer the question
In order to leave comments, you need to log in
Browser cache is a joke, especially chrome. The WP cache also needs to be cleared.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question