A few of you have been having trouble with product images not showing so here's a fix.
Basically you need to add a little code to your themes functions file. You have two options.
- Add it to your child themes functions file
- use a plugin to add it. I recommend this one.
You don't want to add it directly to you main theme functions file as you'll love it whenever you update the theme.
The code you need to add is:
add_filter( 'wp_calculate_image_srcset', '__return_false' );
Good luck!
Comments
Sorry, but your code causes a “Fatal error”, so it is not applied!
Please, check the code and try again.
It works for me ok. Double check you’ve copied it correctly..
Ah you changed the code. Unfortunately not working.
mydreamcamera dot com
Still not mate. Would you mind checking my store?
mydreamcamera dot com
Hey WP Eagle, great content! I’m following you instructions to put in the code but when I click settings and go into the “PHP inserter” The “Functions (PHP code)” switch is automatically switched off and I can’t switch it on or insert any code. It doesn’t allow me to input anything. Any advice?
Hi alex I just built a fashion website. I just signed up and got my api keys and then signed up for aws. i am using woozone . it pulls everything perfect except for images. it shows that it pulled images but the image never shows on my products page.I am using the original api keys i got from amazon. Would their be a problem with the plug in or or did i do something wrong when i signed up with aws. Like i said every thing is perfect except for no images. it pulled prices, descriptions,reviews everything but images.thanks for any advice you may be able to offer Herb Hall
From website editing mode when logged into wordpress select customization Appearance > Customize > WooCommerce > Product Images.
its probably selected as uncropped you can choose custom and 1:1 should work just fixed mine
I AM having problems with my woozone import mode. Can you help me?
my images are not showing up. I used your link sill nothing
hi, I face having problems , like image , Image file is have but not show in my media file .Here are all image is Whit file
Make sure you have the latest versions of Woocommerce, Woozone and your theme installed.
Worked for me. Thanks for posting this resource, Alex.
Freakin awesome – I was just about to tear down my site because of these image issues!!! You saved me a ton of time with Wzone!
Thank you!
can this solution work on elementor and woocommerce
Thank you very much for your advice, however as per other comment above ” The “Functions (PHP code)” switch is switched off and I am unable to switch it on or insert any code. The page doesn’t to be functional. I have contacted the developer, however no feedback has been received yet. Any advice please? Many thanks
Its work on desktop view but not working in mobile how i can solve that issue please help me .
What’s your site?
Hi,
Have uploaded almost 34 images but only 13 showing in product page.
what could be the issue?
Cant click anything on the plugin page. Please share another plugin if you know. I am running a sportswear website images of some products are not coming properly.
I also cannot use the plugin… the switch is set to “off”, and there is no way of switching it to on to then enter the code. I have tried to both safari and chrome. Any advice?
for me, my custom function plugin is not working
..There is a alternate solution, Just go to Customise >> Woocomerce>> product Images>> Set it to 1:1.
It will work. for sure.
Check i Did in my Site https://onlineswadeshi.in/
images dont appear for amazon india but if i import though amazon usa they appear..please help..