wordpress add script to header via functions.php code example
Example 1: wordpress functions add to header
/* INSIDE functions.php */
/* Describe what the code snippet does so you can remember later on */
add_action('wp_head', 'your_function_name');
function your_function_name(){
?>
PASTE HEADER CODE HERE
<?php
};
Example 2: wordpress header script add
/* INSIDE YOUR functions.php theme file -> Add to header some code */
add_action('wp_head', 'your_function_name');
function your_function_name(){
?>
PASTE HEADER CODE HERE
<?php
};