Code running for admins only
-
I have a simple jquery script in HFCM which I have used for quite a while on many sites. As of this week sometime, on some sites but not others, this code only runs when I am logged in to the admin. When I view the site as a visitor it does not run. An example of the code I am using in HFCM is:
<!-- JQUERY SCROLL TRIGGERS --> <script > jQuery(document).ready(function($) { jQuery(document).scroll(function(){ //alert ("scrolled"); $('#menu-main').toggleClass('scrolled', $(this).scrollTop() > 50); }); }); </script> <!-- END JQUERY SCROLL TRIGGERS -->
Any thoughts on how I could fix or troubleshoot this further? Thanks!
The page I need help with: [log in to see the link]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Code running for admins only’ is closed to new replies.