Hello ,
is it possible to get 1/2 + 1/2 product single page layout ? I wanna make product gallery more bigger .
thank you
Hi Denis!
Thank you for using the Enfold theme.
Please add this on functions.php to change the layout of the single product page:
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='six 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='six units single-product-main-image alpha'>";
}
}
}
Cheers!
Ismael
Thank you so much, Ismael !