• So in case with the block the parameter numberposts in the slider-block.php file is just one instead of -1.
    Also the block doesn’t have the code to execute slick, that I added but also are missing the parameters in the data-slick attribute:

    
    	<?php if ( count( $slides ) > 1 ) : ?>
    		<script>
    			jQuery( function( $ ) {
    					$('.yith-slider-<?php echo esc_attr( $atts['slider'] ); ?>').slick();
    				});
    		</script>
    		<?php
    	endif;
  • The topic ‘Issues with block and fixes’ is closed to new replies.