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
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.
Thanks Christian, will try and let you know.
Rens
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
Hello, I just checked this on your site and it seems to be resolved. Did you find a solution to this problem?
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