The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

WP Geo
Changing link on markers (4 posts)

  1. oxwald
    Posted 4 years ago #

    I saw that there is a hook to change tooltip of markers :

    Is there a similar hook to alter the links (i'm look for a way to make some localisation only accessible to members)
    Thank you very much


  2. Ben Huson
    Plugin Author

    Posted 4 years ago #

    Do you mean the link when you click on a marker?
    These currently just use get_permalink() to get the URL of the post to link to.

    Could you explain in more details how you want to customise them?

  3. oxwald
    Posted 4 years ago #

    Just want to "remove" the link for "non members"

  4. Ben Huson
    Plugin Author

    Posted 4 years ago #

    Can't think of an easy way to do this.

    You would have to somehow unenqueue the wp-geo.js file and instead load a custom version of this file removing the following.

    GEvent.addListener(marker, "click", wpgeo_markerClickHandler);

    I'll see if I can make this easier in a future version.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Geo
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic