Tagged: Images, product image, shop overview page
-
AuthorPosts
-
October 24, 2022 at 8:12 pm #1370051
Hi,
I deleted a few product images by mistake.
I uploaded them again.
But the same images are now made square in the shop overview page.
The single product page is okay, but the overview is all over the place.
The old image stay the same, but every new image I upload is made to a square ….What shoud I do?!
Mary Ann
October 25, 2022 at 9:20 am #1370104Hey studioinktvis,
Thank you for the question.
Have you tried purging the cache? Would you mind providing a screenshot of the issue? You can use imgur, savvyify or dropbox for the screenshot. Thanks.
Best regards,
IsmaelOctober 25, 2022 at 10:52 am #1370120Hi,
Can’t you see the private data?
The singel product image is okay.
But that same postcard is in the overview 1:1I purged everything …. does not help
October 26, 2022 at 10:03 am #1370276Hi,
Thank you for the clarification.
You can add this filter in the functions.php file to disable the default thumbnail (shop_catalogue 450x450px) and revert back to the dynamic thumbnail, which is based on the options set in the Appearance > Customize > Woocommerce > Product Image panel.
add_filter( 'avf_wc_before_shop_loop_item_title_img_size', 'avf_wc_before_shop_loop_item_title_img_size_mod', 10, 1 ); function avf_wc_before_shop_loop_item_title_img_size_mod( $thumbnail_size ) { return 'woocommerce_thumbnail'; }
Best regards,
IsmaelOctober 26, 2022 at 11:01 am #1370283Hi,
Does not seem to work.
Below you can see the whole functions.phpOctober 27, 2022 at 10:13 am #1370418Hi,
Thank you for the update.
Looks like you’ve added the code in the style.css file. You have to add it in the functions.php file. Please try to copy the code again directly from this forum, then move it in the functions.php file. Let us know if this works.
Best regards,
IsmaelOctober 31, 2022 at 9:58 am #1370763Oops … I corrected it …. but still the same
Everything I upload is getting ratio 1:1November 2, 2022 at 4:29 am #1371009Hi,
Did you re-upload the thumbnails after adding the code? You can also try and adjust the settings in the Appearance > Customize > Woocommerce > Product Images panel, and make sure to purge the cache.
Best regards,
IsmaelNovember 7, 2022 at 8:47 am #1371619This reply has been marked as private.November 9, 2022 at 8:43 am #1371864Hi,
It is not working because the add_filter function was commented out for some reason, so we corrected it. We also edited the style.css file a bit and removed the invalid PHP code that you added there. The thumbnails are now back to their original aspect ratio. (see private field)
Thank you for your patience.
Best regards,
IsmaelNovember 9, 2022 at 10:03 am #1371870This reply has been marked as private.November 10, 2022 at 8:13 am #1372020Hi,
Did you also see this? Something is wrong in function.php line 5835 => Do I simply remove it ?!
We didn’t see that error when we checked the site. Would you mind providing a screenshot of the issue? You can use imgur, savvyify or dropbox for the screenshot. Thanks.
Best regards,
IsmaelNovember 11, 2022 at 10:26 am #1372183This reply has been marked as private.November 13, 2022 at 9:41 pm #1372438Hi,
Thanks for the screenshot, the notice Notice: Function wpdb::prepare was called incorrectly . The query argument wpdb::prepare() must contain a value
points to the core WordPress file /wp-includes/functions.php don’t edit this file.
You are seeing this Notice because you have WP_DEBUG_DISPLAY enabled, check your site health panel:
So you should disable WP_DEBUG_DISPLAY because this is only a Notice, or you could disable all of your plugins one at a time to find which one is causing this. But a Notice is not the same as an Error.Best regards,
Mike -
AuthorPosts
- The topic ‘My shop images are all over the place’ is closed to new replies.