where to add jquery code
-
Hi
I have some jquery code I would like to add to enable smooth scrolling to anchor tags. Couldt you please tell me where I need to put this code in the theme files? It is:
——————————–
{cms_jquery}<script type=”text/javascript”>
jQuery(document).ready(function($) {
$(“.scroll”).click(function(event) {
event.preventDefault();
$(‘html,body’).animate( { scrollTop:$(this.hash).offset().top } , 1000);
} );
} );
</script>
——————————–Thanks
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘where to add jquery code’ is closed to new replies.