Hi. How can we help?

How to change the number of columns in the vendor page

Many users asking how you can change the number of columns in the vendor page. The reason is that they often use the shop page without sidebar (normally with 4 columns) while in the vendor page put the sidebar for widgets and 4 columns the layout is nice (not all themes "fit" by removing a column ).

Here is the code for the functions.php

if( function_exists( 'YITH_Vendor' ) ){
add_filter( 'loop_shop_columns', 'yith_wcmv_loop_shop_columns' );
function yith_wcmv_loop_shop_columns( $columns ){
if( YITH_Vendors()->frontend->is_vendor_page() ) {
$columns = 1;
}
return $columns;
}
}
Was this article helpful?
0 out of 5 found this helpful

Back to Help Center >