D
D
Dremychi2019-09-20 17:56:50
WordPress
Dremychi, 2019-09-20 17:56:50

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;
}

cb04866-wordpress-2.tw1.ru section SALE , articles 0099 and 0103
article 0096 , also with a broken picture
.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Kutuzov, 2019-09-20
@starhe

Browser cache is a joke, especially chrome. The WP cache also needs to be cleared.

D
Dremychi, 2019-09-20
@Dremychi

deleted all cache, didn't work

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question