Post Carousel Block – responsive column values are hardcoded
-
Great plugin, thank you!
However, I have just noticed that Post Carousel Block has slidesToShow values hardcoded:
(array) apply_filters( 'coblocks_post_carousel_settings', array( 'slidesToScroll' => 1, 'arrow' => true, 'slidesToShow' => $attributes['columns'], 'infinite' => true, 'adaptiveHeight' => false, 'draggable' => true, 'responsive' => array( array( 'breakpoint' => 1024, 'settings' => array( 'slidesToShow' => 3, ), ), array( 'breakpoint' => 600, 'settings' => array( 'slidesToShow' => 2, ), ), array( 'breakpoint' => 480, 'settings' => array( 'slidesToShow' => 1, ), ), ), ) )
This makes the option of choosing the number of columns in the block editor useless really.
The block needs custom/editable column values for each breakpoint.
Ideally, breakpoints themselves should be customiseable as well.Is there a way to override the hard-coded values in functions.php or child theme js file?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Post Carousel Block – responsive column values are hardcoded’ is closed to new replies.