Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Double search
This topic contains 4 replies, has 2 voices, and was last updated by Ernest Marcinko 5 years, 2 months ago.
- AuthorPosts
- March 3, 2018 at 10:08 am #16991
Dear support,
your plugin is great and works smoothly on my website.
I have just one question:
Is it possible to add a second “search button” which can redirect to Google’s search? I just need to know how to “real time” get the Keyword/keyphrase the user add into the Ajax form and add this on a simple outbound link with php. I suppose there is a variable created dinamicaly. Is it possible?Thanks
March 5, 2018 at 10:23 am #16993Hi!
I believe the best solution for this would be to use a custom javascript instead of PHP.
Add this custom code to the functions.php in your theme/child theme directory (copy from line 3 only!). Before editing, please make sure to have a full site back-up just in case!
Change the ID variable to the search shortcode ID, which you want to affect by this code. The URL is the redirect url. The phrase is appended to the end of it.
I hope this helps!
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
March 6, 2018 at 10:14 am #17019Thanks for your reply Ernest. I’m going to try today and I’ll let you know.
Best regards.
Fabrizio
March 12, 2018 at 9:30 pm #17098Worked!
March 13, 2018 at 7:27 am #17102You cannot access this content. Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
- AuthorPosts
You must be logged in to reply to this topic.