• Hi! I’m using woocommerce plugin and i’ve a problem, the products featured images are HUGE, i mean 1500x900px (or the original size of the uploaded image), i discovered that wordpress is not creating thumbnails, in uploads folders are only the original images! not the cropped ones.

    Something extrange is happening, there’s a exception, the main page.

    The featured images appear at the right size, and the fuction the_post_thumbnail is working, The main page,index.php calls different querys for some customs terms (artist name e.g), and the it get a template get_template_part

    Within that template is the code of the thumbnail, the_post_thumbnail, etc, but in the others pages i’ve to use the woocommerce hooks to show the images.

    I hope someone could help me! Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    The featured images appear at the right size, and the fuction the_post_thumbnail is working, The main page,index.php calls different querys for some customs terms (artist name e.g), and the it get a template get_template_part

    Are you referring to your theme’s custom templates, or the ones that come with WooCommerce?

    Thread Starter argdev

    (@argdev)

    I’m referring to my theme custom templates, i think i’ve found the solution about a seconds ago.

    Writing this post, i started thinking: what’s the difference between index.php and the other pages, well i realized that the main difference was the loop i was using.

    In the pages were the images were showing at a huge size the loop was the default one:

    If has posts, while the post, the post, etc.

    That only worked with the woocommerce’s image code, what makes the images show at a huge size.

    I changed the default loop for:

    <?php query_posts(); ?>

    //stuff here, thumbnail (now at the right size)

    <?php rewind_posts(); ?>

    And that worked! Now i’ve control over the images and their size.

    Sometime ago i’ve read that using query_posts was not recommended, is that true? Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Product featured image size error – Woocommerce’ is closed to new replies.