Support » Theme: Storefront » Customising Product Images Sizes Missing

  • Resolved thedrumdoctor

    (@thedrumdoctor)


    I’m testing the Storefront theme on a test site and I’m only seeing the ‘Thumbnail Cropping’ option in the ‘Customising ▸ WooCommerce Product Images’ theme customising section. There’s no ‘Main Image Width’ or ‘Thumbnail Cropping’ option and the thumbnails in product display galleries appear to be stuck . Is this by design in the latest version of the theme or is it possible another plugin could be preventing those options from showing?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Rafy a11n

    (@nawaz0705)

    Hi @thedrumdoctor

    Thank you for reaching out!

    In Storefront, you will not find the Main Image Width field settings. Because those settings are defined in its PHP functions. Since it’s predefined, those settings are removed from the Customizer.

    I hope this helps!

    Thread Starter thedrumdoctor

    (@thedrumdoctor)

    Thanks for that info, can I change the image settings in a child theme functions.php and over-ride the parent theme?

    Hi @thedrumdoctor

    You can change image sizes on Storefront via a child theme by overwriting the following file:

    /wp-content/themes/storefront/inc/woocommerce/class-storefront-woocommerce.php

    Just copy this file from the parent theme to your child theme and edit the following lines:

    'single_image_width'    => 416,
    'thumbnail_image_width' => 324,

    For more detailed instructions, please check this guide from WordPress.org documentation: Child themes – Adding Template Files

    Hope that helps!

    Hi there @thedrumdoctor,

    Hope you managed to get image sizes changed on your site! We haven’t heard back from you for a while, so I’m going to mark this post as resolved now. If you need any further help here, please let us know. Or, if you need additional help with the Storefront theme, please start a new thread and we’ll be able to help you out there.

    Thank you!

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