• Resolved silent2000

    (@silent2000)


    Hi. Can you tell please, is it possible to add link in autocomplete dwopdown box witch lead to search page results https://ibb.co/9trLJpK ? We try to figure out with wordpress plugin, and customize it for reach this goal, but still no luck with documentation. Maybe it’s not possible with your API? Or give us a clue or manual please ??

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    It’s looking like you started on it, so to speak. However, we’re seeing that you may need to figure out how to get the URL to the search page in that place.

    If you copied the autocomplete.php template into your theme, you could echo out the URL to the search page right there. However if you want to pass the search term along as well, you may need some extra JS to do that.

    Is that making sense at all, or do we need to extrapolate a bit more?

    Thread Starter silent2000

    (@silent2000)

    Hi, Michael. Yes, I already copied autocomplete.php, and try some expreriments, for example hardcoded this link. But as you mentioned I need to pass terms to the search page like https://www-dev.kernelcare.com/?s=

    Thread Starter silent2000

    (@silent2000)

    Hi all. I resolve this, if it somebody need code, here how I make it:

    $(".more-results").click(function(e) { 
            e.preventDefault();    
            var term = $(".search-field.aa-input").val();  
      	console.log(term);
            window.location = "https://www-dev.kernelcare.com/?s=" + term;
        });
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘“Show more results” link’ is closed to new replies.