Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

add script tag to wordpress Head

function wpb_hook_javascript() {
    ?>
        <script>
          // your javscript code goes
        </script>
    <?php
}
add_action('wp_head', 'wpb_hook_javascript');
Source by www.wpbeginner.com #
 
PREVIOUS NEXT
Tagged: #add #script #tag #wordpress #Head
ADD COMMENT
Topic
Name
7+6 =