Skip to content

Defter

  • Home

functions.php

functions.phpjavascript

Add Custom Javascript in Functions.php File

That code puts custom javascript tag at footer.

<?php
function hook_javascript_footer() {
  ?>
  <script type="text/javascript">
    // Javascript
  </script>
  <?php
}
add_action('wp_footer', 'hook_javascript_footer');
?>

Comment 1 October 20201 October 2020 Geloda

Posts navigation

← Older posts
Website Built with WordPress.com.
Defter
Website Built with WordPress.com.
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
  • Subscribe Subscribed
    • Defter
    • Already have a WordPress.com account? Log in now.
    • Defter
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar
 

Loading Comments...
 

    Design a site like this with WordPress.com
    Get started