Random JS at the bottom of ever page

I seem to have random text from JS at the bottom of all the pages of my site and I cannot figure out why. It just shows /* ]]> */ at the bottom. Can you help?

check this webpage out for example: https://app.tlvbiblesociety.org/hebrew-prayer-liturgies

I believe I had an issue similiar to this person’s problem: https://theme.co/forum/t/text-showing-at-the-bottom-of-site/108518/3?u=jgreenberg

I for some reason had added this global JS into the cornerstone editor and I am not even sure what it does:
<script type="text/javascript"> $(document).ready(function () { //Disable full page $('body').bind('cut copy paste', function (e) { e.preventDefault(); }); //Disable part of page $('#id').bind('cut copy paste', function (e) { e.preventDefault(); }); });

Hi Joseph,

Thanks for reaching out.
If you are adding the JavaScript into the Global JS, you don’t need the script tag with it. So please remove the open and close script tag and check if that works for you or not. If not, please provide login credentials for your site in a secure note to examine it further, including:

– WordPress Site URL & Login URL
– WordPress Admin username/password

To create a secure note, click the key icon underneath any of your posts.

Thanks

I just ended up removing it. However for future reference, How should it look when I add custom JS in the cornerstone builder? Do you have an example?

Hey Joseph,

You just need to remove the script tag from your JS code. Something like this one:

Hope that helps.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.