Code Snippet for "Get Directions"-Button/Link in Listing Detail

This topic contains 6 replies, has 3 voices, and was last updated by  Joshua Dobbs 6 years, 6 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #405719

    Reinhard Pohlmann
    Expired Member
    Post count: 22

    Hi,

    I want to display the “Get Directions”-Button/Link on a custom Position in my theme. Can Someone please provide me the Codesnippet for that?

    #405720

    Alex Rollin
    Moderator
    Post count: 27815
    #405724

    Reinhard Pohlmann
    Expired Member
    Post count: 22

    Yes, I tried, but it puts the “Get Directions”-Link under the map. But I want to place the Link on a specific position. So, I need an Action, the Provides me the google-Link with long and lat do the Event-Location.

    #405727

    Alex Rollin
    Moderator
    Post count: 27815

    Hello!

    I’m not quite getting it.

    Does what you are asking for already exist in one of our themes?

    If so, send us a link to a page where we can see what you are talking about.

    https://wpgeo.directory/

    The link I sent can be used to place such a link in various locations.

    https://wpgeodirectory.com/docs/linking-to-google-maps-from-a-detail-page/

    #405743

    Reinhard Pohlmann
    Expired Member
    Post count: 22

    Hi, I rechecked the Code and the Link you sent me and it works now. I was trying to make it work with the 1st Part, but the 2nd Part of the Tutorial did it (Changing the position on the page).

    Thanks

    #405784

    Alex Rollin
    Moderator
    Post count: 27815

    Hello!

    Greta to hear!

    #405798

    Joshua Dobbs
    Expired Member
    Post count: 90

    This is awesome! I was wondering how to do this.

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

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket