Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Cursor ready › Reply To: Cursor ready
September 21, 2021 at 11:20 am
#34867
Keymaster
Hi,
It should be doable via a custom code. Try adding this code to the functions.php file in your theme/child theme directory – make sure to have a full server back-up first for safety. For more details you can check the safe coding guidelines.
add_action('wp_footer', 'aspl_add_focus_script');
function aspl_add_focus_script() {
?>
<script>
jQuery( function($) {
setTimeout(function(){
$('input.orig').get(0).focus();
}, 1500);
});
</script>
<?php
}