Hi Vytis, thanks for your time and help. I’m afraid it still doesn’t work. Here is what I did:
* Made a new installation with only theme 2020; the search icon worked directly (when I clicked it the search box got focus).
* Installed Neve; default it had a search widget in the right sidebar, this was a Search Form so click and focus are the same thing.
* Removed the widget; no search available.
* Appearance>Customize>Header; in the Header Builder I shrank the Primary menu and added a Search Icon on the right; clicking the icon does not move the focus.
* Installed OrbitFox and your script; no change.
Unfortunately I don’t know how to access console.log.
You can see my live site at https://www.binnenstadduurzaam.nl/
(it’s in Dutch, but the Search icon is at top right). Searching on derek
should give two hits.
And my test site is at https://prive.corryderek.nl/wp-test/
Feel free to ignore what follows, I don’t want to obligate you in any way!
On the test site I have created a user vytis
, the password being the 10 letters of your website. In a week or two I shall delete the site and/or rebuild it, so if you want you can experiment on it. Mail to the webmaster (page Contact of the live site) comes into my inbox if you want to communicate that way.
-
This reply was modified 4 years ago by NL_Derek.