Skip Navigation

[Resuelto] Change marker icon in Toolset Forms

This support ticket is created hace 2 años, 3 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.

Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.

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 Max hace 2 años, 3 meses.

Asistido por: Minesh.

Autor
Mensajes
#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?
enlace oculto

#2433545

Minesh
Supporter

Idiomas: Inglés (English )

Zona horaria: 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

Idiomas: Inglés (English )

Zona horaria: 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>enlace oculto</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!