Hide empty locations
This topic contains 11 replies, has 3 voices, and was last updated by anders 7 years, 5 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
September 13, 2017 at 9:21 pm #395623
Hi,
Could you please point me in a direction on how to hide links to empty locations (only show links to cities that has upcoming events to display).
I´m building a national eventdirectory where I expect to see a great number of cities from which events are registered. However many of these (especially smaller cities) will only be relevant for shorter periods (when there are upcoming events).
I´m using the “Popular locations” -widget right now but that doesn’t achieve thisThanks!
September 13, 2017 at 11:37 pm #395641I’m sorry, but currently there is no way to achieve this without a customization.
September 14, 2017 at 5:30 pm #395757Ok,
Would you say that it requires a big customization?
Could you perhaps point me to a snippet or something similar so I know where to begin?…another option for me here for me would be if I could have all cities “hidden” in a select list (instead of displaying all at once, taking up lots of space)
So I tried the [gd_location_tab_switcher] but once I´m using multiple cities I need to activate multiple regions also which makes this shortcode display two select lists (regions + cities) instead which isn’t a good option for us. Any way around that?
It would be really great if all cities could be in one selectlist independent of regionThanks!
September 14, 2017 at 6:21 pm #395770I don’t think this is something you can solve with a simple snippet, but I asked to the developers to let us know if they agree.
You’ll probably need to rewrite the widget queries completely.
Thanks
September 14, 2017 at 6:35 pm #395773Just an observation before i look into this, would you not be better instead of removing it and breaking a link on google, rather just show a message like ” No events in your location yet, why not add one CLICK HERE”
Stiofan
September 14, 2017 at 8:32 pm #395789Thank you for your quick replies!
Stiofan, I see your point with having a message shown instead.
My concern here is mostly the large space all these city links would take up and especially since a majority of them would not lead to any events displayed.
The main focus of the site is events but there will be another section where the businesses that publish events will be listed separately so I don´t think there will ever be a link broken for locations on google as the business will remain there even if there are no events at the time.
Does it make sense?Thanks!
September 15, 2017 at 12:37 pm #395925Now i am confused even more 🙂
If you have busineses that will be listed in those cities anyway then i am not sure what the problem is?Stiofan
September 15, 2017 at 1:39 pm #395936Well, the site is really about the events.
So, preferably we should be able to filter out and only display locations where there upcoming events.
We will encourage businesses behind the events to register companyinfo also (taking advantage of GD link to business -feature) and there will be at separate business directory section of the site.
But the focus will be events.Thanks!
September 15, 2017 at 4:05 pm #395967If you have businesses in location x then you need location x to show.
I still think a message if not events found is the best way, you can have a message as long as u want, saying ” no events found, be the first to add one, import from facebook” etc…Hiding locations with no events is far more complicated.
Stiofan
September 15, 2017 at 5:53 pm #395981Ok, I was hoping I could somehow add a “where clause” to the query that triggers the locations widget.
…as an alternative, is there any way to let the gd_location_tab_switcher -shortcode work as a single selectbox where all cities are gathered (without the regions selectlist), even if “Enable Multi Regions” is selected?
(I still need for users to able to publish from different cities)Thanks!
September 16, 2017 at 9:48 am #396047You could probably achieve that with just CSS, just wrap it in a custom div and then apply to there only.
Stiofan
September 18, 2017 at 6:43 am #396214You´re right, that should solve this 😉
Thank you for the advice on this! -
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket