Double search

This topic contains 4 replies, has 2 voices, and was last updated by

 
Keymaster
3 years, 10 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #16991

    Participant

    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

    #16993

    Hi!

    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 :)


    #17019

    Participant

    Thanks for your reply Ernest. I’m going to try today and I’ll let you know.

    Best regards.

    Fabrizio

    #17098

    Participant

    Worked!

    #17102
    You cannot access this content. Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.