Skip Navigation

[Resolved] Map in Custom Search. How to display default location when nothing is found?

This support ticket is created 7 years, 1 month ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 2 replies, has 2 voices.

Last updated by toolset-dave 7 years, 1 month ago.

Assisted by: Nigel.

Author
Posts
#591595

Hi, I have a map in Custom Search. When nothing is found, the Google Map will display oceans. So how to display some default location i.e. Germany instead of it?

#591614

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Dave

You need to insert a map-marker shortcode in the [wpv-no-items-found] section of your Loop Output in place of the no items found text.

When you insert a marker using the Fields and Views button you have the option to specify an address or lat/lng coordinates directly instead of an address stored in a custom field.

#591639

Hi Nigel, thank you for the tip. I also added 1x1px image as a marker, so it´s not visible.