Created
March 29, 2017 10:49
-
-
Save pramod1988/9e99f094c514b6144a1fc76cc97be3b9 to your computer and use it in GitHub Desktop.
Add script in footer in wordpress
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function myscript() { | |
?> | |
<script type="text/javascript"> | |
if ( undefined !== window.jQuery ) { | |
// Jquery code goes here | |
} | |
</script> | |
<?php | |
} | |
add_action( 'wp_footer', 'myscript' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment