Hi,
I would like to disable the scrollbar within the mobile filter left-bar-sidebar for filters where there is nothing to scroll.
also I am using a JS code to show a “show more”-“show less” Button on filters with more then 5 attributes:
jQuery(document).ready(function( $ ){
$('#woodmart-woocommerce-layered-nav-14 > div > ul').find('li:gt(4)').addClass('toggletr').hide()
.end().append(
$('<tr><td class="show_more_btn">» read more</td></tr>').click(function(){
$(this).siblings('.toggletr').toggle();
if($(this).hasClass('expanded')){
$(this).text('» read more');
$(this).removeClass('expanded');
} else{
$(this).text('« read less');
$(this).addClass('expanded');
}
})
);
and on desktop it only shows the scroll-bar when i have opened the “show more” Button, but on mobile its showing scrollbars even for filters with only one attribute to be shown.
could you please help me here?
greetings
Attachments:
You must be
logged in to view attached files.