Вы можете добавить jQuery или javascript в файл function.php темы. Код выглядит следующим образом:
add_action( 'wp_enqueue_scripts', 'add_my_script' );
function add_my_script() {
wp_enqueue_script(
'your_script_name', // your script unique name
get_template_directory_uri().'/js/your-script.js', //script file location
array('jquery') //lists the scripts upon which your script depends
);
}
Для получения более подробной информации посетите этот учебник: http://www.codecanal.com/add-simple-jquery-script-wordpress/