Home › Toolset Professional Support › [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.
This topic is split from https://toolset.com/forums/topic/hide-the-map-on-the-main-search-view-page/
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)
Tagged: Custom search, Toolset Blocks, Toolset Maps, Views plugin
Related documentation:
This topic contains 1 reply, has 2 voices.
Last updated by Waqar 1 year, 6 months ago.
Assisted by: Waqar.
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!
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