hkeely
Forum Replies Created
Viewing 4 replies - 1 through 4 (of 4 total)
-
Oh, and for anyone else who may have a similar issue, the code I used was:
add_action("wp_footer", "asp_custom_script_wp_footer"); function asp_custom_script_wp_footer() { ?> <script> jQuery(function($){ setTimeout(function() {$('form:first *:input[type!=hidden]:first').focus();}, 1000); }); </script> <?php }- This reply was modified 5 years ago by hkeely.
Hooray! I figured it out! Thank you again for your help, Ernest!
Oh no – it works great on the homepage, but on every other page it’s jumping users to the bottom of the page (where I have a second search box). How can I implement the focus so it’s only on the homepage, or uses only the search box in the header of each page?
That works perfectly! Thank you so much, Ernest!!
I absolutely love Ajax Search. It’s what makes my site possible.
Great work!
Viewing 4 replies - 1 through 4 (of 4 total)