In the search window is there a way to remove the "In: City" option?

This topic contains 13 replies, has 2 voices, and was last updated by  rigots 4 years, 7 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #537504

    rigots
    Lifetime Member
    Post count: 275

    Hi,
    When I search anything in my site and I start typing for example “Gilroy” it give me the option for “In:Gilroy California (City)”, “Near: San Jose, CA”, etc.
    But it does not give me the option to search “Near: Gilroy, California, USA”.

    Is there a way to make the search only work with “Near” and only give me the option to search “Near: CITY” and not not option to search “In: CITY”?

    Thank you.

    #537505

    rigots
    Lifetime Member
    Post count: 275
    This reply has been marked as private.
    #537519

    Alex Rollin
    Moderator
    Post count: 27815

    There isn’t a setting for that.

    It is possible to turn off all the suggestions that are not working for you with a settings.

    We have some CSS that might help, here, or at least get you started:

    https://wpgeodirectory.com/support/topic/filter-by-city-town-would-like-to-have-just-near-me/#post-521668

    Let us know how it goes

    #541500

    rigots
    Lifetime Member
    Post count: 275

    Ok, I see.
    Is there any ways to request for “Near City” option to be added in the future in one of your next releases.
    “Near me” is OK, but what if someone is looking from some other location, it would be great to have to option to select “Near Location”, where location is the specified city.

    Thank you.

    #541513

    Alex Rollin
    Moderator
    Post count: 27815

    That is exactly what the Near Search field is for.

    If you want, you could setup a link that points to a near search URL for a place. Add it to your menu for convenience for users.

    #541644

    rigots
    Lifetime Member
    Post count: 275

    Hi Alex,
    Maybe I did not explain myself well.

    I am in San Jose, California, USA and when I go to my site and type “San Jose” in the search field the options from the drop-down menu are “Near: My Location”
    and “In San Jose, California (City)”. I wish that instead of “In: San Jose, California (City)” I would have the option of “Near: San Jose, California (City)” because the listings “IN” San Jose are limited, but “NEAR” San Jose there are more.

    The user can use “Near: My Location” if they are in San Jose and willing to share their location, But what if they are in another city when they are searching and they cant to search listing “Near: San Jose, CA” or near any other city instead of just inside the city how do they do this? Can the geodirectory search allow me to just search near a city only?
    If not, can it allow me the option to search near my location, In the specified city and Near the specified city too?

    I hope I did a better job at explaning thhis time.

    #541686

    Alex Rollin
    Moderator
    Post count: 27815

    If you type san jose and click submit it will be a near search.

    We have some CSS examples here so you can hide the IN suggestions if you like:
    https://wpgeodirectory.com/docs-v2/faq/common-examples/#gd_search

    #541895

    rigots
    Lifetime Member
    Post count: 275

    This half worked, I use the following CSS settings.

    /* GDV2 – Hide only the IN search recommendation */
    .geodir-listing-search ul.gdlmls-neighbourhood,
    .geodir-listing-search ul.gdlmls-city,
    .geodir-listing-search ul.gdlmls-region,
    .geodir-listing-search ul.gdlmls-country {
    display: none !important;
    }

    But when I type in some California Cities, some of them give me the option to select the ‘Near: City’ option and when I type in other cities it does not give me the option to pick the ‘Near: City’.

    It is kind of random, some times I get the “Near” option, and other times I don’t.
    For example typing in “San Jose, CA” into my http://www.partycoop.com site gives me very inconsistent results.

    Is there anything else I should be checking so that it is consistent?

    #541983

    Alex Rollin
    Moderator
    Post count: 27815

    The field is designed for NEAR search and IN suggestions. There aren’t additional workarounds. Searching ‘san jose’ should give you the same results as selecting near san jose.

    #542005

    rigots
    Lifetime Member
    Post count: 275

    Ok, I that typing “San Jose, CA” gives me the same results as “Near: San Jose, CA, USA” selection.

    But why is it that when I type “San Jose, CA” at no point during or after my typing do I get automatic drop-down suggestion option for “Near: San Jose, CA, USA”, seems as if the city was not found, but whey when I click search it does return the right results, but it is confusing to users and I want to see if I can activate the Near: City dropdown option, did I do something wrong in the CSS above?

    #542063

    Alex Rollin
    Moderator
    Post count: 27815

    The field is designed for NEAR search and IN suggestions. Not all queries generate NEAR suggestions. There is nothing wrong with the CSS.

    #542403

    rigots
    Lifetime Member
    Post count: 275

    You said that not all queries generate NEAR suggestions, but why does sending the same query some times generates a NEAR suggestion and other times the same query does not generate the NEAR suggestion, is this how it is supposed to work? That just seems inconsistent, it should return the same suggestions for the same query every time.

    #542426

    Alex Rollin
    Moderator
    Post count: 27815

    It reacts dynamically based on the letters typed into the box.

    #542435

    rigots
    Lifetime Member
    Post count: 275

    OK, that is all for this issue.
    I have hopes that someday in the future you will make it work so that you get a NEAR suggestion for every major city that is typed in.

Viewing 14 posts - 1 through 14 (of 14 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