Home Forums Square Trouble changing WooCommerce product image sizes

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #4515
    andrearossman
    Participant

    I’m having issues changing the WooCommerce product image sizes in the Square theme. I’ve tried updating the sizes under the WooCommerce Settings section but it just defaults back to the original parameters. I’ve also tried changing the code in my child theme’s woo-functions.php file without any luck. Perhaps I’m not entering the code correctly there?

    #4529
    Hash
    Keymaster

    Hi,

    The theme is code to overwrite the default size so any changes in the setting will not work.

    It requires change in code to make the setting work.

    Thanks

    #4582
    andrearossman
    Participant

    Yep, I made changes to the size in the woo-functions.php file but for some reason it won’t give me a landscape look. I didn’t change the width, just the height. Is there a minimum height the images need to be set at?

    #4625
    Hash
    Keymaster

    Hi,

    You need to remove the line number 96 in the below file https://themes.trac.wordpress.org/browser/square/1.3.8/inc/woo-functions.php?rev=83790

    add_action( ‘init’, ‘sq_update_woo_thumbnail’);

    #4660
    andrearossman
    Participant

    Ok, but whenever I update the theme won’t I have to go back in and make that change again?

    #4688
    Hash
    Keymaster

    Yes, you have to make this change every time you update the theme.

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