This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

the number of searches

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #40381
    enomotoshotaenomotoshota
    Participant

    Hi,
    When using Live Search Triggers, is it possible to show only the number of searches made, instead of showing the posts?

    #40399
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi,

    Do you mean like showing only the number of results instead of the actual results in the live results window?

    #40420
    enomotoshotaenomotoshota
    Participant

    Hi,

    That’s right.

    #40445
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Actually, I think it is possible.

    There is a feature to show the results information box, which displays the number of results.
    To display the results number only, please use this configuration: https://i.imgur.com/Yc39uWr.png

    This is the text on the screenshot for the first field:

    Results Count for <strong>{phrase}</strong>: <strong>{results_count_total}</strong>

    ..and the second:

    Results Count: <strong>{results_count_total}</strong>

    Then, you also need to hide the search results. For that, some custom CSS code is required. Apply this code to your theme custom CSS field (if it supports it) or use the custom CSS field on the search plugin back-end.

    .asp_r .results {
        display: none !important;
    }

    After that, you should get something like this: https://i.imgur.com/KHtqONp.png

    #40447
    enomotoshotaenomotoshota
    Participant

    Excellent! It’s done!

    Thank you very much.

    “No results!” is what I want to display, so I tried the following selector.

    #ajaxsearchprores9_1.horizontal .results .item, #ajaxsearchprores9_2.horizontal .results .item, div.asp_r.asp_r_9.horizontal .results .item{
    display: none;
    }

    How do I change the text “No results!”?
    I could not find it.

    #40452
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You can change the text of that here: https://i.imgur.com/Tkx8WPa.png
    I hope this helps!

    #40460
    enomotoshotaenomotoshota
    Participant

    Thank you very much.
    I got it.

    #40462
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.