Archived topic
Output Search icon /form
5 replies · Started by Daniele on August 13, 2020
Hello,
I would like to output the search icon (with the toggle form) in a Element hook I'm creating.
How can I output it?
thanks
Hi there,
The GP Navigation search can only be displayed in the Primary navigation or moved to the secondary with a little code.
Or are you looking to use a plugin ?
I would love to have a php code to output it in my custom hook :D
If it's not possible I will do it with a plugin..but I prefer always to not install unnecessary stuff!
The nav search itself is mostly built to work inside the primary navigation - it may be better to go with another solution if you need to add it to a hook.
Thanks,
I made it manually with a hook and some JS
Glad you got it working :)