Skip Navigation

[Resolved] Disable the marker title that appears on hover

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

Problem:
The user would like to disable the title that appears when we hover on a map marker.

Solution:
If we don't set a title for the marker, it will take the post's title by default. There is no way from the user interface to disable this feature. But we can remove the title using custom Javascript code, such as:

jQuery('.wpv-addon-maps-marker').attr('data-markertitle', '')
This support ticket is created 3 years, 9 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
9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 - - 9: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: Africa/Casablanca (GMT+01:00)

This topic contains 2 replies, has 2 voices.

Last updated by MikeS1622 3 years, 9 months ago.

Assisted by: Jamal.

Author
Posts
#1997851

As mentioned in my previous ticket, I want to disable the marker title attribute in the map view of users I have made.

#1998001

Well, I did not need to contact our 2nd Tier or the devs. I run a test locally and I was able to deactivate the marker on-hover popup by adding the following Javascript code to the view. Check this screenshot hidden link

jQuery('.wpv-addon-maps-marker').attr('data-markertitle', '')

If you are using the Blocks editor, the on-hover popup is disabled by default.

#1998033

That's perfect, thanks Jamal!