Double search

This topic contains 4 replies, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 6 years, 1 month ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #16991
    fa_1976it
    fa_1976it
    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
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    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
    fa_1976it
    fa_1976it
    Participant

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

    Best regards.

    Fabrizio

    #17098
    fa_1976it
    fa_1976it
    Participant

    Worked!

    #17102
    Ernest Marcinko
    Ernest Marcinko
    Keymaster
    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.