• Resolved mike2mike

    (@mike2mike)


    We have implemented SearchWP using a shortcode on a tab of a product page of a client’s website, under the tab ‘Test’ on this site.

    Works well, but when clicking ‘Find Results’ on that tab, the page reloads completely, scrolling to the top and closing the tab.

    This makes it hard to find the results again (you have to scroll down, find the ‘Test’ tab, and click on this tab again to see the search results).

    Is there any way for the results to just refresh in the tab window without the whole page reloading?

    This is the shortcode we are using

    [searchwp_search_form engine="pdf_searches" var="searchvar" button_text="Find Results"]
    
    [searchwp_search_results engine="pdf_searches" var="searchvar" posts_per_page=4]
    Results available below:
    <h1>[searchwp_search_result_link direct="true"]</h1>
    [searchwp_search_result_excerpt]
    [/searchwp_search_results]
    
    [searchwp_search_results_none]
    No results found, please search again.
    [/searchwp_search_results_none]
    
    [searchwp_search_results_pagination direction="prev" link_text="Previous" var="searchvar" engine="pdf_searches"]
    [searchwp_search_results_pagination direction="next" link_text="Next" var="searchvar" engine="pdf_searches"]

    Thank you!

    • This topic was modified 1 year ago by mike2mike.
Viewing 1 replies (of 1 total)
  • Plugin Support Karan

    (@kjswp)

    Hi @mike2mike,
    It is possible to display live search results in the shortcode form as user types a keyword by using “live_search” attribute:
    [searchwp_search_form engine="pdf_searches" var="searchvar" button_text="Find Results" live_search="true"]

    The main SearchWP plugin, however does not have built in functionality to show ajax results without reloading the page after clicking the search button.

    You will need to use custom javascript programming to achieve this.

Viewing 1 replies (of 1 total)
  • The topic ‘SearchWP – how to avoid a page reload after clicking ‘Find Results’’ is closed to new replies.