1

I have set the Thumbanil size to 112px, but the page is rendering the original size instead

1

That is why the thumbanil is so pixelated

The thumbnails show just fine in Firefox:

2

What could be wrong? maybe the Media Image settings are in conflict with the Product Image settings?

3

4

0

Did you try to upload a new image and when uploading image checked what size it getting into image size in media?

You can also try custom thumbnail size:

add_image_size('products_image', 112, 112, true); 

and enque it into loop.

  • It creates the sizes specified in the Product Image settings (248x300, 510x600, 112x112px, and the original size ofc) but rather always displays the original size (or medium size, depends on the image); Where can I add the add_image_size('products_image', 430, 305, true); ? – idan May 18 '17 at 3:50
  • sorry for mistake I updated my answer – Porosh Ahammed May 18 '17 at 3:57
  • add_image_size('products_image', 112, 112, true); this sounds like good solution, in which file do I need to add this line? – idan May 18 '17 at 4:31
  • add it to function.php after "add_theme_support( 'title-tag' );" and then query it where you want with this : <?php $idd = get_the_ID(); $img_id = get_post_thumbnail_id($idd); $slider_image = wp_get_attachment_image_src($img_id, 'products_image'); echo $slider_image; ?> – Porosh Ahammed May 18 '17 at 4:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.