Skip Navigation

[Resolved] Removing the Icon from the Use My Location button

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

Problem:

The issue here is that the user wanted to remove the Icon on the Use My Location Button on their view.

Solution:

This can be done by using the jquery below.

jQuery('.js-toolset-maps-distance-current-location').val('Use My Location');

100% of people find this useful.

This support ticket is created 3 years, 10 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 Rich 3 years, 10 months ago.

Assigned support staff: Shane.

Author
Posts
#1096145
screenshot wcf.png

Tell us what you are trying to do?
Remove the icon from the Use My Location button

Is there any documentation that you are following?
None

Is there a similar example that we can see?
hidden link

What is the link to your site?
hidden link

The font we use doesnt support the font used for the locate arrow that is forced into this button. How do I remove it?

#1096250

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Rich,

Its actually in the value of the button.

What you can do is to remove it by using this js.

jQuery('.js-toolset-maps-distance-current-location').val('Use My Location');

Also you will need to apply this patch to your CRED plugin before using the jQuery.

https://toolset.com/errata/quotes-in-the-extra-css-or-js-content-will-get-backslashed/

Thanks,
Shane

#1096266

I don't see a CRED plugin. Is it named something else?

Also on the patch page you are directed to update the file here /library/toolset/cred/classes/
Where is "/library/toolset/cred/classes/" under my wordpress installation?

#1096326

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Rich,

The frontend filters that I look at, i thought it was from our Toolset Forms plugin but its actually from our Views plugin. So adding the code in your view js editor should work.

Thanks,
Shane

#1096408

I ended up adding the js code in my header and it worked. No patch needed.