Добрый день!
Как обернуть jq
$(document).ready(function () {
setInterval(function(){
$('#string>span').addClass('blink_on');
setTimeout(function(){$('#string>span').removeClass('blink_on')},1500);
},6000)
});
в нормальный вид, чтобы в functions.php запустить? Создать файл с этим кодом и подключить вот так?
add_action('wp_enqueue_scripts', 'blink');
function blink() {
wp_enqueue_script(
'blink', // name your script so that you can attach other scripts and de-register, etc.
get_template_directory_uri() . '/js/blink.js', // this is the location of your script file
array('jquery') // this array lists the scripts upon which your script depends
);
}