Hi,
I need to display shop sidebar in right side.
Can you please advise?
Thanks
Hey PT0060,
Sorry for the late reply, to add a right sidebar to a product page try adding this code to the end of your functions.php file in Appearance > Editor:
add_action('init','ava534345953_init', 50);
function ava534345953_init() {
add_action( 'woocommerce_after_single_product_summary', 'avia_add_sidebar', 25);
}
function avia_close_image_div() {
global $avia_config;
echo "</div>
";
}
function avia_add_sidebar() {
if(is_product()) {
$avia_config['currently_viewing'] = "shop_single";
get_sidebar();
}
}
and this css to your Quick CSS:
.single-product-main-image {
width: 25%;
}
.single-product-summary {
overflow: hidden;
width: 45%;
float: left;
margin-right: 5%;
}
.single-product .sidebar {
width: 25%;
}
You may need to adjust the css to suit.
Best regards,
Mike