Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #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

    #1370104

    Hey 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,
    Ismael

    #1370120

    Hi,

    Can’t you see the private data?

    The singel product image is okay.
    But that same postcard is in the overview 1:1

    I purged everything …. does not help

    #1370276

    Hi,

    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,
    Ismael

    #1370283

    Hi,

    Does not seem to work.
    Below you can see the whole functions.php

    #1370418

    Hi,

    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,
    Ismael

    #1370763

    Oops … I corrected it …. but still the same
    Everything I upload is getting ratio 1:1

    #1371009

    Hi,

    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,
    Ismael

    #1371619
    This reply has been marked as private.
    #1371864

    Hi,

    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,
    Ismael

    #1371870
    This reply has been marked as private.
    #1372020

    Hi,

    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,
    Ismael

    #1372183
    This reply has been marked as private.
    #1372438

    Hi,
    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:
    2022-11-13_007.png
    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

Viewing 14 posts - 1 through 14 (of 14 total)
  • The topic ‘My shop images are all over the place’ is closed to new replies.