• 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?

    • This topic was modified 4 years, 8 months ago by neko_in_space.
Viewing 1 replies (of 1 total)
  • Plugin Support gdpavle

    (@gdpavle)

    Hi @olgri,

    Thank you for reaching out.

    The number of posts is limited to 4, which means that you can display 1, 2, 3 or 4 posts at a time. This is set to the specified values in order to protect the integrity of the layout and elements around it. These values can’t be overridden, unfortunately.

    Best Regards,
    Pavle

Viewing 1 replies (of 1 total)
  • The topic ‘Post Carousel Block – responsive column values are hardcoded’ is closed to new replies.