CDATA and custom script js

hello,

i have this script to insert for my website
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.5/jquery.fancybox.min.css"/>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.5/jquery.fancybox.min.js"></script>
<script type="text/javascript">
jQuery(document).ready(function ($) {
  $(".reservation_popup").fancybox({
    'width': 600,
    'height': 630,
    'type': 'iframe',
    'zoomSpeedIn': 300,
    'zoomSpeedOut': 300
  });
});
</script>

when i insert it in custom js by betheme option at bottom on every page i got white line with this //]]>
as you can see on this website for ex. https://le-sixiemesens.fr/

the developer of the script told me its because of CDATA tag not recognized by html folders (something like this don't understood everything ...)

and if i insert script directly in the footer.php this is delete after each update of theme

how can i do ?
ty


Comments

Sign In or Register to comment.