Home › Forums › WoodMart support forum › Mobile version › Reply To: Mobile version
October 4, 2018 at 2:00 pm
#80899
Artem Temos
Keymaster
1. Sorry, try this
function woodmart_get_owl_items_numbers( $slides_per_view, $post_type = false ) {
$items = array();
$items['desktop'] = ( $slides_per_view > 0 ) ? $slides_per_view : 1;
$items['tablet_landscape'] = $items['desktop'];
if ( $items['desktop'] >= 5 ) {
$items['tablet_landscape'] = 4;
}
$items['tablet'] = ( $items['tablet_landscape'] > 1 ) ? $items['tablet_landscape'] - 1 : $items['tablet_landscape'];
$items['mobile'] = ( $items['tablet'] > 2 ) ? $items['tablet'] - 1 : 1;
if ( $items['mobile'] >= 2 ) {
$items['mobile'] = 1;
}
if ( $post_type == 'product' ) {
$items['mobile'] = woodmart_get_opt( 'products_columns_mobile' );
}
if ( $items['desktop'] == 1 ) {
$items['mobile'] = 1;
}
return $items;
}
2. It is because you are using list mode. You can display product description there with the following CSS code
div.product-list-item .woocommerce-product-details__short-description {
display: block;
}
3. Add this part also
.woocommerce-ordering {
display: none!important;
}