Error when try to set responsive breakpoints
-
When I attempt to set responsive breakpoints for the carousel and adjust the number of slides, the block renders an “unexpected or invalid content” error in the editor.
The code:
<!-- wp:cloudcatch/splide-carousel {"perPage":2,"breakpointTablet":"781","perPageTablet":1,"perPageMobile":1} -->
<div class="wp-block-cloudcatch-splide-carousel wp-block-splide-carousel__container"><figure class="wp-block-splide-carousel splide" data-splide="{"type":"slide","perPage":2,"speed":400,"gap":"0px","fixedWidth":"","autoWidth":false,"perMove":1,"direction":"ltr","fixedHeight":"","height":"","arrows":true,"pagination":true,"autoplay":false,"interval":"5000","pauseOnHover":true,"mediaQuery":"max","breakpoints":{"599":{"perPage":1},"781":{"perPage":1}}}" data-splide-extensions="{"autoScroll":false,"urlHash":false,"grid":false}"><div class="wp-block-splide-carousel__track splide__track"><div class="wp-block-splide-carousel__list splide__list"><!-- wp:cloudcatch/splide-carousel-item -->
<div class="wp-block-cloudcatch-splide-carousel-item wp-block-splide-carousel__slide splide__slide"><!-- wp:paragraph -->
<p>Slide 1</p>
<!-- /wp:paragraph --></div>
<!-- /wp:cloudcatch/splide-carousel-item -->
<!-- wp:cloudcatch/splide-carousel-item -->
<div class="wp-block-cloudcatch-splide-carousel-item wp-block-splide-carousel__slide splide__slide"><!-- wp:paragraph -->
<p>Slide 2</p>
<!-- /wp:paragraph --></div>
<!-- /wp:cloudcatch/splide-carousel-item --></div></div></figure></div>
<!-- /wp:cloudcatch/splide-carousel -->
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.