• mauszozo

    (@mauszozo)


    For some reason the inline script is getting mangled, resulting in the Carousel not working.

    In the original carousel-anything/plugin.class.php, I see this:

    navText:["<div class='nav-btn prev-slide'></div>","<div class='nav-btn next-slide'></div>"],

    Once the web page renders and I view page source, it looks like this:

    navText:["<div class='nav-btn prev-slide'></script></div>","<div class="nav-btn next-slide"></div>"],

    Any idea why this would happen? It was working fine, and sometime in the last couple months it stopped working. Maybe after a WP update?

    • This topic was modified 3 years ago by mauszozo.
Viewing 1 replies (of 1 total)
  • I have the same problem, it looks like JavaScript interprets the property wrong, resulting in closing early the script, therefore messing up the entire carousel.
    Is there any fix for this?

Viewing 1 replies (of 1 total)
  • The topic ‘Code in script tag getting mangled’ is closed to new replies.