Broke for me on 4.7 update
-
Hi,
Just to let you know that the plugin broke for us when we updated to 4.7. We’re using Chrome, a twenty-ten child theme with all plugins up-to-date and it seems like WordPress was injecting paragraphs tags into Slick’s javascript and leaving huge whitespace where the slider once was.
The fix was to clear out the new lines in the wpsisac-template.php file where this code appears…
<script type=”text/javascript”>
jQuery(document).ready(function(){
jQuery(‘.wpsisac-slick-slider-<?php echo $unique; ?>’).slick({
dots: <?php echo $dotsv; ?>,
infinite: true,
arrows: <?php echo $arrowsv; ?>,
speed: <?php echo $speedv; ?>,
autoplay: <?php echo $autoplayv; ?>,
fade: <?php echo $fadev; ?>,
autoplaySpeed: <?php echo $autoplayIntervalv; ?>,
slidesToShow: 1,
slidesToScroll: 1,
adaptiveHeight: false
});
});
</script>
…so it looks like this…
<script type=”text/javascript”>
jQuery(document).ready(function(){
jQuery(‘.wpsisac-slick-slider-<?php echo $unique; ?>’).slick({
dots: <?php echo $dotsv; ?>,
infinite: true,
arrows: <?php echo $arrowsv; ?>,
speed: <?php echo $speedv; ?>,
autoplay: <?php echo $autoplayv; ?>,
fade: <?php echo $fadev; ?>,
autoplaySpeed: <?php echo $autoplayIntervalv; ?>,
slidesToShow: 1,
slidesToScroll: 1,
adaptiveHeight: false
});
});
</script>Seems to stop WordPress adding paragraph tags.
Any chance of this change making the next update to stop this being overwritten?
Great plugin by the way!
Thanks
- The topic ‘Broke for me on 4.7 update’ is closed to new replies.