Problem:
How to hide the map distance filter unit dropdown that displays km and mi and also how to change the option text
Solution:
To hide that select box, please try to add following line of CSS code to your view's "Search and Pagination" section's CSS box and try to resolve your issue.:
#toolset-maps-distance { display: none !important; }
Currently there is no native feature available to change the mi option value but as a workaround you can use the following javascript code and add it to JS box and try to resolve your issue.
jQuery(document).ready(function($){ $('#toolset-maps-distance option[value=mi]').text('Miles') });
Relevant Documentation:
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 |
---|---|---|---|---|---|---|
- | 10:00 – 13:00 | 10:00 – 13:00 | 10:00 – 13:00 | 10:00 – 13:00 | 10: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/Kolkata (GMT+05:30)
This topic contains 5 replies, has 2 voices.
Last updated by 6 years, 4 months ago.
Assisted by: Minesh.