Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Show quick links in search results box on input focus › Reply To: Show quick links in search results box on input focus
Sure, I can help you with that 🙂
Accessing the results box properly without search is currently problematic, as it is processed first, then resized, all in different private methods. There is no API function to access the box opening function, and the workaround would be too complicated in my opinion.
Instead I have quickly made a custom solution that should start you off. This is update proof as well. Basically this script will:
– append the 'aspCustomLinks' div element to the end of the body element, so it is relative to it – which allows positioning it to the search bar
– then on the input focus it moves the lement just below the search bar, then displays it
The other script hides it, whenever the search start event 'asp_search_start' is fired. And that's it. I've also included a bit of styling to it.
I hope this helps you out.Best,
If you like my products, don't forget to rate them on codecanyon :)