Hiding/removing pagination if no results are found in '#hits' - instantsearch.js

I’m trying to remove the pagination widget if no results are found in #hits, right now it just shows ‘nothing found’ together with the 1-page pagination below it. Here’s the code

    container: '#hits',
    templates: {
      empty: 'nothing found'
    container: '#pagination', 

note: I’m a beginner please go easy on me

1 Like

I don’t understand why the Aloglia team does respond to good questions like this one…
Did you ever find a solution to this?

Hi @sconklin and @BeastMaster, you can check for the number of hits that are returned in the results and hide the pagination widget with Javascript and css.