February 9, 2016 at 9:18 am
#580220
Hey MEXX!
Thank you for using Enfold.
Do you want to move the product widget area in the right sidebar? Please add this in the functions.php file:
add_action('init','ava_product_sidebar_init_mod', 50);
function ava_product_sidebar_init_mod() {
remove_action( 'woocommerce_before_single_product_summary', 'avia_close_image_div', 20);
add_action( 'woocommerce_before_single_product_summary', 'avia_close_image_div_mod', 20);
add_action( 'woocommerce_after_single_product_summary', 'avia_add_sidebar_mod', 19);
}
function avia_close_image_div_mod() {
echo "</div>";
}
function avia_add_sidebar_mod() {
global $product, $avia_config;
if( is_product() ) {
$avia_config['currently_viewing'] = "shop_single";
get_sidebar();
}
}
And this css code in the Quick CSS field:
.single-product-main-image {
width: 25%;
}
.single-product-summary {
overflow: hidden;
width: 45%;
float: left;
margin-right: 5%;
}
.single-product .sidebar {
width: 25%;
}
Adjust the width values as needed.
Cheers!
Ismael