WordPress.org

Ready to get started?Download WordPress

Forums

Woocommerce image pixels blurred and small. (1 post)

  1. naquiuddin
    Member
    Posted 12 months ago #

    Hi,

    The image in the woocommerce's product page is blurred and unclear. You can see this using the below link.

    http://childdevelopmentinfo.com/shop/discipline-your-kid-the-right-way-without-shouting-or-spanking/

    I tried changing the CSS and regenerated the thumbnails, after changing the image dimensions in catalog settings of woocommerce but it still persists.

    This issue is weird. I think the issue is in product-image.php file of woocommerce which is returning small, thumbnail size image instead of the medium one. Here is the code that returns the image.

    $image = get_the_post_thumbnail( $post->ID, apply_filters( 'single_product_large_thumbnail_size', 'shop_single' ) );
    $image_title = esc_attr( get_the_title( get_post_thumbnail_id() ) );
    $image_link = wp_get_attachment_url( get_post_thumbnail_id() );
    $attachment_count   = count( $product->get_gallery_attachment_ids() );

    Any idea what is going wrong?

    Thanks.

Reply

You must log in to post.

About this Topic