Hello,
I am using the Dynamic Categories widget on mobile and I need it to display as a static grid (4 columns, all categories visible, no carousel/swipe) similar to how it looks in the attached Screenshot 1.
I managed to achieve this layout using custom CSS that disables the Swiper and wraps the slides into a grid. However the CSS breaks the swipe functionality on other widgets on the same page.
The CSS I used:
cssselector .etheme-dynamic-categories-wrapper .swiper-wrapper {
flex-wrap: wrap;
transform: none !important;
width: calc(100% + 10px);
pointer-events: none;
margin: 0 -5px;
overflow: visible !important;
}
selector .etheme-dynamic-categories-wrapper .swiper-slide {
width: 100% !important;
flex: 0 0 25%;
max-width: 25%;
pointer-events: all;
padding: 5px;
margin: 0 !important;
}
Without this CSS the widget displays as a carousel with oversized slides and only 2-3 visible at a time (Screenshot 2).
My questions:
Is there a built-in option to display the categories as a static grid on mobile instead of a carousel?
If not, what is the correct way to override the Swiper behaviour only for this widget without affecting other carousels on the same page?
Thank you.