Skip to content

Instantly share code, notes, and snippets.

@jamiehs
Created October 26, 2012 22:51
Show Gist options
  • Save jamiehs/3962024 to your computer and use it in GitHub Desktop.
Save jamiehs/3962024 to your computer and use it in GitHub Desktop.
Example of how to place extra custom JavaScript after the wp_footer and before the closing body tag
</div>
</div>
</div>
<!-- /Footer -->
<?php wp_footer(); ?>
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery('.slidedeck-frame').bind('mouseenter', function(){
jQuery('.slidedeck').slidedeck().pauseAutoPlay = true;
});
jQuery('.slidedeck-frame').bind('mouseleave', function(){
jQuery('.slidedeck').slidedeck().pauseAutoPlay = false;
});
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment