Skip Navigation

[Resolved] Editing distance filter placeholder

This support ticket is created 4 years, 9 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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 5 replies, has 2 voices.

Last updated by RensV5812 4 years, 9 months ago.

Assisted by: Christian Cox.

Author
Posts
#1556425
Toolset3.PNG

Hi,

I need to translate the distance filter placeholder. Currently it says 'Enter a location'.

I've found this thread on this topic: https://toolset.com/forums/topic/customising-search-form-using-maps-distance-filter-q4/

Since I am using the block editor, where can I enter this code? I tried it like this in an HTML block but it didn't work:

<script>
function(){
  $('#toolset-maps-distance-center').attr('placeholder',' Vul een locatie in');
};
</script>
<script>
jQuery(document).ready(function(){
  $('#toolset-maps-distance-center').attr('placeholder',' Vul een locatie in');
});
</script>

Thanks,
Rens

#1556585
Screen Shot 2020-03-19 at 2.13.23 PM.png

Hello, if you select the top-level View block using the Block Navigation menu, then you will find a Custom JS and CSS panel in the right column. You can add JavaScript code in the JS section. I would try using the jQuery ready handler, like in your second example above.

#1556607

Thanks Christian, will try and let you know.

Rens

#1557051
toolset6.PNG
Toolset5.PNG

Hi Christian,

I've added the code from the second example in the described location. It doesn't seem to have an effect though?

Rens

#1561487

Hello, I just checked this on your site and it seems to be resolved. Did you find a solution to this problem?

#1561767

Yes sir! Can't remember what I had to tweak but in the end I am using your code. Thanks for your time again!

Rens