Showing single quotes ' ' if you search shows nothing

This topic contains 7 replies, has 5 voices, and was last updated by  identity 10 years ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #8799

    physicaltherapistcom
    Full Member
    Post count: 35

    Greetings,

    I have a specific field in my “customize my search” area called “Clinic Specialties” These are options that someone can search by. If you select an option that has no results, the title just shows single quotes and it does not look good. How can I fix this? I have a screen shot attached.

    Thanks.

    #8801

    Simone
    Expired Member
    Post count: 3515

    Hello,
    these quotes are the result when nothing is written to the search field (in the “Search for” box), basically it tells you that for the “empty” query there are no results, that’s the normal behavior as far as I know (I’d be happy if I’m wrong about this).

    It could be tweaked with some code in the search.

    #8802

    physicaltherapistcom
    Full Member
    Post count: 35

    Hello,

    Thanks for your response. Yes, I understand there are no search results, but it should let you know that there are no results for “something.” Can you let me know where this can be fixed in the code or add it in a release?

    Please advise.

    Thanks!

    #8808

    Simone
    Expired Member
    Post count: 3515

    I will let Vikas knows about that, and get back at you, or eventually that will be added in the upcoming releases.

    #8832

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hello, That is the keyword that is used and it is blank, which is correct. If you can think of something better to put there we will listen but as it stands it is correct.

    Thanks,

    Stiofan

    #15873

    Tom
    Buyer
    Post count: 123

    I do also think that the behavoiur is not ideal.

    Background: Lets say I have differet custom post types. For example “Hotels”, “Restaurants”, “Pubs”.

    In many applications of GD, the user will be looking for a restaurant or bar in a certain place – but he will not want to use another keword. Because he is already in the right category.

    So also in my application, I marked the “Keyword” Field as optional, in order not to confuse the users. (People might use it to look for a specific name, but in general, they don’t need it.)
    So in most cases, in the search results you will have as a result “Search for ” “, wich looks bad.

    My suggestion: Make it simply “Search results”, and the “for ”” appears only, when something was entered in the keyword field. When the keyword was left empty, please don’t show the “for ‘ ‘ “.

    Thanks,
    Tom

    #15968

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    thanks for the suggestion tom, i will be looking at this when i get a chance.

    Stiofan

    #15992

    identity
    Lifetime Member
    Post count: 445

    Stiofan,

    I’d suggest leading off with the CPT and/or category.

    Examples:

    Restaurant search results: {keyword} {location}

    In this instance, no quotation marks are used.

    Now regardless of the combinations, keyword and location, no keyword with location, keyword without location, neither keyword or location, you should have a presentable heading. With neither, you do have the colon, but I think this isn’t a huge issue.

    cheers

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

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount