Forum: Bug Reports

This forum is closed for new topics. However, you can still search for a solution in the old topics. For technical support and general questions related to GEO my WP plugin and its core add-ons please use the support forum.

[Resolved]External Locator Button

Forums Bug Reports External Locator Button

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #51314
    kristopherk1
    Member

    I was wondering if there is a way to create an external locator button for the user to “reset” their location without click on the button in the address field.

    I realize that if they refresh the page, their new location will be used to filter the posts, but I find that if they do that then all of the other filters are lost.

    My plan is to have a “find my location” button separate from the address field – that would keep the filters already used.

    #51315
    kristopherk1
    Member

    I was able to do it with jquery, unless there is a hook that would work better.

    Here’s the code I’m using.

    jQuery(document).ready(function($) {
    $(“#find-me”).click(function(){
    $(“i#2”).trigger(“click”);
    return false;
    });
    });

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.