Sauter la navigation

[Résolu] How to customize use my location button text with maps distance filter

Ce fil est résolu. Voici une description du problème et la solution proposée.

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 Il y a 6 années et 5 mois. 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)

Ce sujet contient 4 réponses, a 2 voix.

Dernière mise à jour par julieP Il y a 6 années et 5 mois.

Assisté par: Minesh.

Auteur
Publications
#957107

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

Thanks

#957212

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: 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

Les langues: Anglais (English )

Fuseau horaire: 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!