Answers for "product image settings woocommerce"

3

get product image woocommerce

// Use $post->ID to get from post object
$id = $loop->post->ID
$image = wp_get_attachment_image_src( get_post_thumbnail_id( $id ), 'single-post-thumbnail' );

<img src="<?php echo $image[0]; ?>" data-id="<?php echo $id; ?>" />
Posted by: Guest on May-04-2020
0

auto images size of woocommerce products

@media (min-width: 768px) {
    .inside-wc-product-image {
        width: 100%;
    }
    .woocommerce ul.products li.product a img {
        height: 200px; /* adjust height */
        object-fit: cover;
    }
}
Posted by: Guest on November-26-2020

Code answers related to "product image settings woocommerce"

Code answers related to "Objective-C"

Browse Popular Code Answers by Language