Forums Forums General remove Page 1 of 1

Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Anonymous
    #244228

    where can i remove “Page 1 of 1”?,
    its make no sense to have this if there is only one page,
    and maybe you can write a little hook?

    Trevor
    #244249

    Are you using the Shortcode method to display the results?

    If so, follow this guide to customizing (or did you already?):

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

    See this code line:

    Page <?php echo $query->query['paged']; ?> of <?php echo $query->max_num_pages; ?><br />

    Replace that with:

      <?php if ($query->max_num_pages > 1 } ?>
    	Page <?php echo $query->query['paged']; ?> of <?php echo $query->max_num_pages; ?><br />
      <?php } ?>
    

    I think that would work.

    Anonymous
    #244255

    yes i did already, thanks, it was helpful

    Trevor
    #244269

    Thanks for letting me know. I will close this thread for now.

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