Skip Navigation

[Résolu] Change marker icon in Toolset Forms

This support ticket is created Il y a 2 années et 3 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.

Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.

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 Max Il y a 2 années et 3 mois.

Assisté par: Minesh.

Auteur
Publications
#2432095

Max

Tell us what you are trying to do?
Change marker icon in Toolset Forms

Is there a similar example that we can see?
lien caché

#2433545

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Unfortunately, I do not see any way to change the marker icon displayed on the Toolset forms.

You can add it as a feature request and our product manager will review it.
- https://toolset.com/home/contact-us/suggest-a-new-feature-for-toolset/

#2434639

Max

Hi Minesh,
Too bad, I need the markers on all pages of the site to be the same style.
Maybe there is a way to change the marker through the code?
I will be very grateful for an example. Is it possible?

#2435341

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

It is possible to change within the code.

You can open the following file:

plugins\toolset-maps\resources\js\wpv_addon_maps_editor.js

And navigate to line number: 401, you will find the following code:

You should change the following code from:

if ( ! thiz.prop( 'disabled' ) ) {
			thiz_marker_options = {
				draggable: true
			};
		}

To:

if ( ! thiz.prop( 'disabled' ) ) {
			thiz_marker_options = {
				draggable: true,
				icon:'<em><u>lien caché</u></em>'
			};
		}

Where:
- You can change the icon image URL to your desired URL and save the file.

I hope this will help.

Note:
- Please note that as you are editing the core file source code, when you update the plugin, the above change will be overridden.

#2435355

Max

My issue is resolved now.
I understand that this fix will be overwritten when updating the Toolset Maps.
But as a quick fix, it's great.
Thanks for the help!