Hide Results on Page Load

Forums › Forums › Search & Filter Pro › Hide Results on Page Load

Tagged: 

Viewing 4 posts – 1 through 4 (of 4 total)
  • Anonymous
    #219550

    Hi all,

    Might be me being thick but the client has requested that the user must first search using the form before results are loaded. At the moment when the user visits the search page (Form & Results on same page) it automatically shows all results. How can I flip this on it’s head so it shows empty until the user performs a search?

    Thanks,
    Matt

    Trevor
    #219555

    Are you using our Shortcode results method? If so, this post should help:

    https://support.searchandfilter.com/forums/topic/hide-all-results-before-a-search-query-is-made/#post-182014

    The logic can sometimes be applied to your theme PHP templates also.

    Anonymous
    #219613
    This reply has been marked as private.
    Trevor
    #219615

    Ah, my bad. I forgot to say you must change the ID (the example shows 1024) to YOUR form ID. Does that fix it?

Viewing 4 posts – 1 through 4 (of 4 total)
Search & Filter Support
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

We also use cookies to store items in your cart as well as allowing your to login on the site.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.

By continuing to use this site, you also agree to our Privacy Policy.