Title: Post Carousel Block &#8211; responsive column values are hardcoded
Last modified: July 8, 2020

---

# Post Carousel Block – responsive column values are hardcoded

 *  Resolved [neko_in_space](https://wordpress.org/support/users/olgri/)
 * (@olgri)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/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?
    -  This topic was modified 5 years, 11 months ago by [neko_in_space](https://wordpress.org/support/users/olgri/).

Viewing 1 replies (of 1 total)

 *  Plugin Support [gdpavle](https://wordpress.org/support/users/gdpavle/)
 * (@gdpavle)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/post-carousel-block-responsive-column-values-are-hardcoded/#post-13106618)
 * Hi [@olgri](https://wordpress.org/support/users/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.

 * ![](https://ps.w.org/coblocks/assets/icon-256x256.jpg?rev=2243972)
 * [Page Builder Gutenberg Blocks – CoBlocks](https://wordpress.org/plugins/coblocks/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/coblocks/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/coblocks/)
 * [Active Topics](https://wordpress.org/support/plugin/coblocks/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/coblocks/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/coblocks/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [gdpavle](https://wordpress.org/support/users/gdpavle/)
 * Last activity: [5 years, 11 months ago](https://wordpress.org/support/topic/post-carousel-block-responsive-column-values-are-hardcoded/#post-13106618)
 * Status: resolved