• Resolved StevenWP

    (@stevenwp)


    Hi all,

    Can someone tell me how to change or override the WooCommerce thumbnail_image_width (‘thumbnail_image_width’ => 320)

    In the Neve master theme it is defined in /inc/core/front_end.php on line 630

    I am using a Neve child theme and I cant find how to change or override this
    ‘thumbnail_image_width’ in my child theme’s functions.php to for example 600px instead of 320px

    I tried a lot of things, and also regenerated thumbnails but nothing works…

    Thanks a lot!
    Kind regards

Viewing 4 replies - 1 through 4 (of 4 total)
  • What have you tried so far that hasn’t worked?

    Does the following work for you?

    add_filter( 'neves_woocommerce_args', function( $size ) {
    			return array(
    				'thumbnail_image_width' => 600,
    			),
    		} );
    Thread Starter StevenWP

    (@stevenwp)

    Thank you @jarretc, I’m not a programmer so I’ve tried all sorts of methods that are explained here: https://code.tutsplus.com/tutorials/a-guide-to-overriding-parent-theme-functions-in-your-child-theme–cms-22623

    I tried to add your code at the bottom of the child theme’s functions.php but unfortunately it breaks the site; “The site is experiencing technical difficulties.”

    Any idea what causes this? Thanks again!
    Kind regards

    • This reply was modified 5 years, 3 months ago by StevenWP.

    Hi @stevenwp,

    Neve has the option to change the thumbanil in the Customizer. Did you try it?
    It’s in Woocommerce → Product Images.

    Thread Starter StevenWP

    (@stevenwp)

    Hi @raducan,

    I am sorry for the late reply.

    I’m not sure why but in the Customizer > Woocommerce > Productimages I can only set “Thumbnail cropping” options.

    • 1:1
    • Custom – to change the aspect ratio
    • Uncropped

    I dont have an option there to set a custom size…

    Kind regards

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘WooCommerce thumbnail_image_width’ is closed to new replies.