Skip Navigation

[Resolved] Remove text from radius filter

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 contains 2 replies, has 2 voices.

Last updated by christianS-11 2 years ago.

Author
Posts
#2509521

Hi,
I need to simplify the control-distance filter, to only have the address-input.

My code so far:

[wpv-control-distance distance_unit_url_param="toolset_maps_distance_unit" distance_radius_url_param="toolset_maps_distance_radius" distance_center_url_param="toolset_maps_distance_center" compare_field="adresse" default_distance="100" distance_center_required="yes"]

According to this thread: https://toolset.com/forums/topic/style-distance-filter/#post-1541623
I remove all buttons and elements but now my only issue is, how to remove "Show results within of"-Text.
If I use the inputs_placeholder="" argument, it dosen't to anything.
If I use inputs_placeholder="..." it also removes the input field.

I can't share a URL; its on a local server.

Best regards,
Christian

#2509671

Nigel
Supporter

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

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

Hi Christian

I checked the source code to see how that filter control is generated, and it looks like you can achieve what you want by adding the inputs_placeholders attribute with a value of "%%CENTER%%" to the shortcode, e.g.

[wpv-control-distance inputs_placeholder="%%CENTER%%" distance_unit_url_param="toolset_maps_distance_unit" distance_radius_url_param="toolset_maps_distance_radius" distance_center_url_param="toolset_maps_distance_center" compare_field="address"]
#2509683

Perfect, it works!
My issue is resolved now. Thank you!