Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1413829

    Hi,
    I want to change the dimention of the main image of the products, but it remains stuck at 450×450. I wanted to modify the values ​​via the database, but they are not taken into account on the site after having regenerated the images.

    Here is what I get as a value for the “shop_single” variable : https://pecheleurres.ae2agence.ovh/uploads/2023/07/image.png
    does the enfold theme itself use parameters on its side?
    Because I have no option to modify the values ​​from the back office. Whether from the media menu or woocomemrce.

    Best regards.
    Guillaume

    #1413901

    Hi Guillaume,

    Please add this code in functions.php of your child theme, if you don’t have a child theme then you can use the plugin called WPCode to insert this code snippet:

    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';
    }

    Hope it helps.

    Best regards,
    Nikko

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.