Post Carousel bug + solution
-
There is a bug in the Post Carousel frontend.js.php file.
Then there is no setting available formove_slides
it will currently render nothing:moveSlides: <?php echo $settings->move_slides; ?>,
This will result in JS code that creates a fatal error “Unexpected ‘,'” since there is no value for modeSliders.:
moveSlides:,onSlideBefore: etc.
Simple solution would be to cast it to an integer:
moveSlides: <?php echo <span style="font-family: inherit; font-size: 0.8rem;">(int) $settings->move_slides; </span><strong style="font-family: inherit; font-size: 0.8rem;">?><span style="font-family: inherit; font-size: 0.8rem;">,</span>
This is most likely the case with more settings throughout the codebase.
I couldn’t find a repo on GitHub for this so therefore I posted it here.Cheers, Jory
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Post Carousel bug + solution’ is closed to new replies.