This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Double search

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #16991
    fa_1976itfa_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 MarcinkoErnest 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!

    #17019
    fa_1976itfa_1976it
    Participant

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

    Best regards.

    Fabrizio

    #17098
    fa_1976itfa_1976it
    Participant

    Worked!

    #17102
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.