Tagged: featured image, narrow, woocommerce
Hallo!
When I make changes to the featured image in settings, I am still unable to change the size to the front photo. It is very narrow and I would like to change the width.
Here is a link to the problem:
http://metamorphqc.com/?product=216
Can you please help me?
Thank you in advance.
All the best
Erik Atzen
Hey erikatzen!
Thank you for using Enfold.
You can use this on functions.php to increase the width of the product image container:
add_action( 'init', 'half_single_product_page', 1);
function half_single_product_page() {
remove_action( 'woocommerce_before_single_product_summary', 'avia_add_summary_div', 25);
add_action( 'woocommerce_before_single_product_summary', 'avia_add_summary_div_six', 25);
if(!function_exists('avia_add_summary_div_six'))
{
function avia_add_summary_div_six()
{
echo "<div class='five units single-product-summary'>";
}
}
remove_action( 'woocommerce_before_single_product_summary', 'avia_add_image_div', 2);
add_action( 'woocommerce_before_single_product_summary', 'avia_add_image_div_six', 2);
if(!function_exists('avia_add_image_div_six'))
{
function avia_add_image_div_six()
{
echo "<div class='seven units single-product-main-image alpha'>";
}
}
}
Best regards,
Ismael
Thank you very much!!
– Erik