mardi 26 janvier 2021

I am Having Error in wordpress having offset Zero

Undefined offset: 0 in /home/swasimow/public_html/wp-content/themes/karo/inc/woo/hooks.php on line 188

I have higlighted the line

else {
            echo '<span class="' . $class_image . ' woocommerce-product-gallery__image ">';
            if (!$lazy_load) {
                echo woocommerce_get_product_thumbnail($image_size);
                echo '</span>';
                if ($hover_image) {
                    echo '<span class="hover_image">';
                    **echo wp_get_attachment_image($prod_galleries[0], $image_size, 0, array('class' => 'product-hover-image'));**
                }

Aucun commentaire:

Enregistrer un commentaire