Skip Navigation

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

This thread is resolved. Here is a description of the problem and solution.

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 3 years, 11 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.

This topic contains 4 replies, has 2 voices.

Last updated by julieP 3 years, 11 months ago.

Assigned support staff: Minesh.

Author
Posts
#957107

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

Thanks

#957212

Minesh
Supporter

Languages: English (English )

Timezone: 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

Languages: English (English )

Timezone: 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!