- This topic has 11 replies, 3 voices, and was last updated 6 years, 6 months ago by
Tom.
-
AuthorPosts
-
November 9, 2017 at 3:55 pm #420110
Michael Largue
How can I connect the above plugin to the GP Navigation Search? This is the link to the above plugin’s documentation…
November 9, 2017 at 10:02 pm #420313Tom
Lead DeveloperLead DeveloperYou could try this function:
add_filter( 'generate_navigation_search_output', 'tu_nav_live_search' ); function tu_nav_live_search() { printf( '<form method="get" class="search-form navigation-search" action="%1$s"> <input type="search" class="search-field" value="%2$s" name="s" title="%3$s" data-swplive="true" /> </form>', esc_url( home_url( '/' ) ), esc_attr( get_search_query() ), esc_attr_x( 'Search', 'label', 'generatepress' ) ); }November 9, 2017 at 10:43 pm #420338Michael Largue
Hi Tom
Unfortunately, it does not work. Instead of returning progressive actual items found (ajax), it behaves in the same manner as it originally di.November 9, 2017 at 10:45 pm #420340Tom
Lead DeveloperLead DeveloperAccording to their instructions, that should be all that’s needed. Any chance you can link me to your site?
November 9, 2017 at 10:47 pm #420342Michael Largue
Hi Tom
Correction, it does work. I forgot to activate it. Doh! Thank you very much.
Regards
MichaelNovember 9, 2017 at 10:47 pm #420344Michael Largue
I forgot to mark it as resolved…
November 9, 2017 at 11:14 pm #420346Tom
Lead DeveloperLead DeveloperGlad I could help 🙂
September 29, 2019 at 8:43 am #1021953Karol
The function seems to work partially now. Each link from the result box needs to be double-clicked in order to open a page. See here
Any ideas on how to fix it?
September 29, 2019 at 3:34 pm #1022136Karol
Update: I’ve just found that the problem doesn’t occur when I use the search widget. The navigation search still needs a double-click. Could you please take a look at the CSS settings of the nav search and the result box? Maybe there’s a conflict between the two properties.
September 29, 2019 at 7:28 pm #1022185Tom
Lead DeveloperLead DeveloperThat’s strange, it almost looks like a bug with the focus. Any chance you can report it to the plugin author? They might know why this could happen/what we can do to fix it. Maybe just removing focus once the results are shown would fix it.
September 30, 2019 at 7:03 am #1022443Karol
Nevermind, Tom. I’m now using Dave’s WordPress Live Search and it’s almost perfect. I have one issue with CSS but I’m opening a new ticket to solve it.
Thanks for your help anyway!
September 30, 2019 at 10:07 am #1022718Tom
Lead DeveloperLead DeveloperNo problem 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.