Code showing at the bottom of every page.

morrowaudio
New Member
5 0 0

Hello!

The following code is showing up on every page at the bottom:

$(document).ready(function(){ if($('.w3-order-lookup').length){ var intervalID = setInterval(checkContainer, 50); function checkContainer () { var showArchived = $('#osShowArchived'); if(showArchived.length){ $(showArchived).prop('checked','checked'); clearInterval(intervalID); } } setTimeout(function(){clearInterval(intervalID);}, 2000); } });

See the website here: www.morrowaudio.com then scroll to the very bottom. It is on all the pages. Everything however is working fine, orders, etc.

Looking forward to a solution.

0 Likes
Jivan_Suhagiya
Shopify Partner
494 68 102

Hi,
It looks like you put code in theme.liquid file in outside script tag. you need to put any js code in script tag.
so like this

<script type="text/javascript">
  //js code here
</script>

 

If helpful then please Like and Accept Solution.
Email: suhagiyajivan1992@gmail.com
Skype: jivan.suhagiya
First kind of Checkout Reminder APP: https://apps.shopify.com/checkout-reminder
0 Likes

Hey,

1. In your Shopify Admin go to online store > themes > actions > edit code
2. In your theme.liquid file, you need to put all of the code that is showing at the bottom of your pages between <script> tags.

It should look like this:

<script>
$(document).ready(function(){ if($('.w3-order-lookup').length){ var intervalID = setInterval(checkContainer, 50); function checkContainer () { var showArchived = $('#osShowArchived'); if(showArchived.length){ $(showArchived).prop('checked','checked'); clearInterval(intervalID); } } setTimeout(function(){clearInterval(intervalID);}, 2000); } });
</script>



Please let me know whether it works.

Kind regards,
Diego

◦ Problem Solved? ✔️ Please click on Accept as Solution and like.
◦ Tutorials: Minimal theme product pages slideshow | Debut Theme product pages slideshow
◦ Looking to hire a reliable Shopify developer? Same day response: ezfycode@gmail.com.
0 Likes
morrowaudio
New Member
5 0 0
Thanks! All fixed!

www.morrowaudio.com

Mike Morrow
0 Likes