• Resolved yhdm

    (@yellowhousedesign)


    Great job on this plugin! I will definitely be purchasing the premium version when it’s completed.

    I was wondering if it would be possible to include a “Use my current location” button in the search bar. Clicking it would trigger the auto-locate feature.

    Thanks!

    https://wordpress.org/plugins/wp-store-locator/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Tijmen Smit

    (@tijmensmit)

    You would have to modify some files for that to work. You first need to add a button to the /frontend/templates/ your active template. Make sure you give the button an unique id.

    Then in the /js/wpsl-gmap.js you need to add this.

    $( "#thebuttonid" ).on( "click", function() {
        checkGeolocation();
    }

    Replace ‘thebuttonid’ with the actual id from the button that you added. I haven’t tested it, but this should work.

    Thread Starter yhdm

    (@yellowhousedesign)

    Great – thanks Tijmen!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Feature Request / "Use my current location" button in search bar’ is closed to new replies.