Skip Navigation

[Gelöst] Remove text from radius filter

This support ticket is created vor 2 Jahren. 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.

Heute stehen keine Supporter zur Arbeit im Werkzeugsatz-Forum zur Verfügung. Sie können gern Tickets erstellen, die wir bearbeiten werden, sobald wir online sind. Vielen Dank für Ihr Verständnis.

Dieses Thema enthält 2 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von christianS-11 vor 2 Jahren.

Author
Artikel
#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

Sprachen: Englisch (English ) Spanisch (Español )

Zeitzone: 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!