Skip Navigation

[Resolved] Change marker icon in Toolset Forms

This support ticket is created 2 years, 4 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.

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)

This topic contains 4 replies, has 2 voices.

Last updated by Max 2 years, 4 months ago.

Assisted by: Minesh.

Author
Posts
#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?
hidden link

#2433545

Minesh
Supporter

Languages: English (English )

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

Languages: English (English )

Timezone: 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>hidden link</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!