WordPress.org

Ready to get started?Download WordPress

Forums

WP Geo
Changing link on markers (4 posts)

  1. oxwald
    Member
    Posted 2 years ago #

    Hi,
    I saw that there is a hook to change tooltip of markers :
    http://www.wpgeo.com/documentation/hooks/filters/wpgeo_point_title

    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

    http://wordpress.org/extend/plugins/wp-geo/

  2. Ben Huson
    Member
    Plugin Author

    Posted 2 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
    Member
    Posted 2 years ago #

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

  4. Ben Huson
    Member
    Plugin Author

    Posted 1 year 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

About this Topic

Tags