Skip Navigation

[Resolved] Split: HIde the map when no results are found

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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 1 reply, has 2 voices.

Last updated by Waqar 1 year, 6 months ago.

Assisted by: Waqar.

Author
Posts
#2614265

THANK YOU!!! This was exactly what I needed and worked perfectly. I appreciate your quick and helpful response.
One other map related question:
If a search is performed and there are no results for that search - it shows a map of the African coast. Is there a way to hide map as well when they are no items in the search results?

Thank you!

#2614281
no-items-found-message.png

Hi,

You can include some custom CSS code, in the view's 'No Items Found Text' field:
( example screenshot attached )


<style>
.wpv-addon-maps-render {
display: none;    
}
</style>

This code will be included to hide the map block, only when the view's search will return, no results.

regards,
Waqar