AJAX Search result limit stuck on 7 results

This topic has 4 replies, 3 voices, and was last updated 7 months ago ago by Luca Rossi

  • Avatar: Future IT
    FIT
    Participant
    May 22, 2024 at 09:18

    The AJAX Search result limit stuck on 7 with a Show More button to see the rest.

    I’ve tried updating the “Results limit” in Theme Options -> Search however it doesn’t change.

    Please, contact administrator
    for this information.
    3 Answers
    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff
    May 22, 2024 at 12:14

    Hello, @FIT,

    Thank you for choosing our theme and for reaching out to our support center.

    We are delighted to inform you that the issue you reported has been successfully resolved. We have implemented a change in the result limits input by setting the value to “-1”, which now allows for the display of an unlimited number of results.

    For your convenience, we have recorded a video demonstrating the search results, which you can view in the private content area of our website.

    Should you require any further assistance or have additional inquiries, please do not hesitate to contact us.

    Best regards,
    The 8Theme Team

    Please contact administrator
    for this information.
    Avatar: Future IT
    FIT
    Participant
    May 23, 2024 at 05:38

    Thank you.

    It took me a while to see what you meant.

    Now that it is set to -1, it seems to show 5 results (no longer 7 results) now along with the “Show More” button… then after a while it just auto redirects to a the Search results page automatically.

    Is there no way to show more products in the ajax search itself? like 30 products for example? Is that how it is supposed to work?

    Avatar: Justin
    Luca Rossi
    Support staff
    May 23, 2024 at 10:56

    Hi @FIT,

    Currently, there is no hooks/filters to increase the search results in the header. If you want to change it, please navigate to this file: /wp-content/plugins/et-core-plugin/app/models/customizer/class-ajax-search.php line 192 & 193:

    – Change:

    
    		$custom_post_types_limits     = false;
    		$custom_post_types_limits_val = 5;
    

    – To:

    
    		$custom_post_types_limits     = true;
    		$custom_post_types_limits_val = 30;
    

    Hope it helps!

    Best regards,
    The 8Theme Team

  • Viewing 4 results - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.