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-
AuthorPosts
-
March 31, 2020 at 12:30 am #537504
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.
March 31, 2020 at 12:32 am #537505This reply has been marked as private.March 31, 2020 at 1:38 am #537519There 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:
Let us know how it goes
April 21, 2020 at 2:35 am #541500Ok, 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.
April 21, 2020 at 3:46 am #541513That 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.
April 21, 2020 at 5:41 pm #541644Hi 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.
April 21, 2020 at 9:19 pm #541686If 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_searchApril 22, 2020 at 4:48 pm #541895This 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?
April 23, 2020 at 3:07 am #541983The 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.
April 23, 2020 at 5:04 am #542005Ok, 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?
April 23, 2020 at 10:25 am #542063The field is designed for NEAR search and IN suggestions. Not all queries generate NEAR suggestions. There is nothing wrong with the CSS.
April 24, 2020 at 9:52 pm #542403You 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.
April 24, 2020 at 10:57 pm #542426It reacts dynamically based on the letters typed into the box.
April 24, 2020 at 11:30 pm #542435OK, 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. -
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket