Image Size issue
-
Sorry for my english …
I’m using the mystile theme
i tried to change the image size using the control panel of wooCommerce
once i changed the values (and i did regenerate my thumbnails)
on the single product page my image is FULL WIDTH (100% of the page size)
and the menu is now the responsive menu ..i tried to fix it via the functions.php tweak :
function mystile_woocommerce_image_dimensions() {
global $pagenow;if ( ! isset( $_GET[‘activated’] ) || $pagenow != ‘themes.php’ ) {
return;
}
$catalog = array(
‘width’ => ‘400’, // px
‘height’ => ‘400’, // px
‘crop’ => 0 // true
);
$single = array(
‘width’ => ‘600’, // px
‘height’ => ‘600’, // px
‘crop’ => 0 // true
);
$thumbnail = array(
‘width’ => ‘120’, // px
‘height’ => ‘120’, // px
‘crop’ => // false
);
// Image sizes
update_option( ‘shop_catalog_image_size’, $catalog ); // Product category thumbs
update_option( ‘shop_single_image_size’, $single ); // Single product image
update_option( ‘shop_thumbnail_image_size’, $thumbnail ); // Image gallery thumbs
}
add_action( ‘after_switch_theme’, ‘mystile_woocommerce_image_dimensions’, 1which has not worked …
seems i have nothing else to do .. please help
page is http://911.sh/
go to Boutique then choose the only product
if you inspect the element it says 600×489 ….
<img src=”http://911.sh/Capture.JPG”>
https://wordpress.org/plugins/woocommerce/
- The topic ‘Image Size issue’ is closed to new replies.