Skip Navigation

[Resolved] Change the placeholder text in wpv-control-distance shortcode

This support ticket is created 6 years, 8 months ago. 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.

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/Hong_Kong (GMT+08:00)

This topic contains 2 replies, has 2 voices.

Last updated by andyK-6 6 years, 8 months ago.

Assisted by: Luo Yang.

Author
Posts
#631678
Screenshot-2018-4-4 Wohnung mieten - Nestfinder.png

Tell us what you are trying to do?
Change the placeholder text in [wpv-control-distance] shortcode

I would like to change the placeholder text in the distance center input field. See screenshot "Geben Sie einen Standort ein"

<div class="col-sm-3">
		[wpv-control-distance compare_field="adresse" distance_center_url_param="maps_distance_center" distance_center_placeholder="gg" distance_radius_url_param="maps_distance_radius" distance_unit_url_param="maps_distance_unit" default_distance="7" inputs_placeholder="<label for='toolset-maps-distance-center'>Standort</label><div class='input-group'>%%CENTER%%</div></div></div><div class='col-sm-2'><label for='toolset-maps-distance-value'>im Umkreis von</label><div class='input-group'>%%DISTANCE%%<span class='input-group-addon'>km</span></div>" visitor_location_button_text=" "]
	</div>

What is the link to your site?
hidden link

#631788

Hello,

There isn't such a built-in feature, currently you can change it with some JS codes, for example, add below JS codes into your view:

jQuery( function( $ ) {
  $( "#toolset-maps-distance-center" ).attr( "placeholder", 'My text here...');
});

More help:
https://toolset.com/documentation/user-guides/adding-custom-javascript-views/

#631827

Thanks