Support Forums

Looking for support? You can access the support system via your account.

Forums Forums Search & Filter Pro Problem with pagination

Viewing 6 posts - 1 through 6 (of 6 total)
  • Antartika snc
    #226189

    Hi Trevor,
    sorry, I have another problem with the AJAX function. In fact:

    • If I disable AJAX, my search results are displayed very good. Pagination is fine.
    • If I activate AJAX, I always see the pagination, though with just a single result. When I click to continue (number 2 in pagination) there’s a Not Found Results message

    Can you suggest a solution?
    I’d like to maintain AJAX.

    – – –

    In addition, can you suggest me
    where I can edit the not found result?

    Thank you Trevor

    Antartika snc
    #226190
    This reply has been marked as private.
    Trevor Moderator
    #226199
    This reply has been marked as private.
    Trevor Moderator
    #226313

    The ‘Not found’ message comes from your theme template file.

    This is a screenshot (from the browser developer tools Inspector) of the HTML your search results template (from your theme) currently outputs:

    https://www.screencast.com/t/TV5uO7H4epB

    The structure is not correct. It needs to be changed to look like this (you must edit the template file – make a child theme and copy the file to there and edit it there):

    https://www.screencast.com/t/D6cLZFI6S3Lq

    See how the results are wrapped in their own div (class="search-results") and the pagination is moved inside the main section?

    The Ajac Container then changes from #main to .search-results

    Only then can Ajax work.

    Antartika snc
    #226321

    Thank you Trevor! Such a big deal.
    Solved

    Trevor Moderator
    #226328

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

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

The topic ‘Problem with pagination’ is closed to new replies.