I would like to change the image size in the product page slider of the web shop from 450×335 tot 450×450, without affecting the thumbs of the portfolio (portfolio thumbs must remain 450×350, only product page images must become 450×450).
I guess the best way to do this is to add in functions.php an extra line of code, fill in the appropriate image size and label it ‘productpage':
$avia_config['imgSize']['productpage'] = array('width'=>450, 'height'=>450);
In the code that generates the product page slider, I would have to refer to the label ‘productpage’ in stead of ‘portfolio’. This means I must change row 276 in config-woocommerce/config.php, from:
$slider -> setImageSize('portfolio');
$slider -> setImageSize('productpage');
Am I on the right track?
The topic ‘Product page image size’ is closed to new replies.