Saltar navegación

[Resuelto] How to customize use my location button text with maps distance filter

Este hilo está resuelto. Aquí tiene una descripción del problema y la solución.

Problem:
How to customize use my location button text with maps distance filter
Solution:
To change the text of button "Use My Location" with maps distance filter, you should add following javascript code to your view's JS box:

jQuery(document).ready(function($){
 $('.js-toolset-maps-distance-current-location').val('Use my location');
    
});

Relevant Documentation:

This support ticket is created hace 6 años, 5 meses. 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

Este tema contiene 4 respuestas, tiene 2 mensajes.

Última actualización por julieP hace 6 años, 5 meses.

Asistido por: Minesh.

Autor
Mensajes
#957107

How do I remove the fontawesome symbol on the 'use my location' button please?

Thanks

#957212

Minesh
Supporter

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Well - could you please tell me what exactly you want to change? A screenshot will do.

#957244
use location.JPG

See the little box to the left of the text? That would normally be the fontawesome location arrow but I'm not using fontawesome so how do I get rid of the placeholder image please?

#957250

Minesh
Supporter

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

What if you try to add following JS code to JS box:

jQuery(document).ready(function($){

   $('.js-toolset-maps-distance-current-location').val('Use my location');
   
});
#957885

Fabulous Minesh - thank you!