SupportCategory: Materialize WordPressAutoFocus Search
it_admin asked 7 months ago

Hi, I have purchased your materialize theme,
It is has being pretty great all round. I have niggling issue though, I can’t get the the search to autofocus. So when you select search you have to click search then hit the input bar to start typing. I would like that once you hit the search button that it would autofocus.
I notice too this is the default behaviour.
i have attempted to get it work in child theme by adding html autofocus to it. Do you know of a wordpress php way to get it to autofocus before I start adding js to the problem?

1 Answers
Trendy Theme Staff answered 7 months ago


The best way to use Javascript for autofocus. You can check this –