Home › Forums › WoodMart support forum › WC Marketplace (WCMP) and Woobmart › Reply To: WC Marketplace (WCMP) and Woobmart
September 7, 2022 at 3:21 pm
#402056
Elise Noromit
Member
Hello,
Unfortunately, there is no option to combine the vendor sidebar with the WoodMart sidebar.
Please add this code to the functions.php file of the child theme:
if ( ! function_exists( 'woodmart_breadcrumbs_on_vendor_page' ) ) {
/**
* Render breadcrumbs on vendor page.
*
* @return void
*/
function woodmart_breadcrumbs_on_vendor_page() {
if ( ! defined( 'WCMp_PLUGIN_TOKEN' ) || ! is_tax( 'dc_vendor_shop' ) || ! woodmart_get_opt( 'shop_page_breadcrumbs', '1' ) ) {
return;
}
woodmart_enqueue_inline_style( 'woo-shop-predefined' );
woodmart_enqueue_inline_style( 'woo-mod-shop-loop-head' );
?>
<div class="wd-breadcrumbs">
<?php woodmart_current_breadcrumbs( 'shop' ); ?>
</div>
<?php
}
add_action( 'woocommerce_before_shop_loop', 'woodmart_breadcrumbs_on_vendor_page' );
}
And add this code to code to the Theme Settings > Custom CSS:
.column-class.wcmp-middle-sec div:not(.wcmp-tab-header) {
display: flex;
flex-wrap: wrap;
}
.column-class.wcmp-middle-sec div:not(.wcmp-tab-header) .wd-breadcrumbs {
margin-inline-end: auto;
margin-bottom: 20px;
}
.column-class.wcmp-middle-sec div:not(.wcmp-tab-header) .products {
flex: 1 1 100%;
}
Best Regards