Forums Forums Search & Filter Pro How to hide search results count?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Anonymous
    #257807

    Hello!

    Thanks for great plugin. But how to hide search results information? I am using dropdown menu for categories and after each search it says:

    Found 55 Results
    Page 1 of 6

    And I am using Infinite Scroll option. There it also shows results:

    Page 1 of 6
    Found 55 Results
    Page 2 of 6

    Basically I just want to show results, not any extra information (want to hide number of pages and results).

    Regards,

    Trevor
    #257846

    If you are using the Shortcode display results method …

    If you haven’t already done so, can you follow this guide:

    https://searchandfilter.com/documentation/search-results/using-a-shortcode/

    In particular, follow the instructions in the Customising section.

    However, I think you have missed this crucial step, based on your post:

    Rather than copy the results.php file to your theme sub-folder, copy the results-infinite-scroll.php file, and then rename it to results.php

    The code for this file is different, to account for how the Infinite Scroll works.

    That will give you a results.php file you can edit, in a sub-folder named search-filter in your theme folder.

    So, look for this code in the results.php template file:

    Found <?php echo $query->found_posts; ?> Results<br />

    … and delete that line.

    Please note that in the UK today is a public holiday, so further replies may be delayed.

Viewing 2 posts - 1 through 2 (of 2 total)