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

    (@tijmensmit)

    The title is turned into a url, but if you want to show the url on a seperate line you have to modify the createInfoWindowHtml function in the wpsl-gmap.js file on line 594.

    Thread Starter JonathanFokker

    (@jonathanfokker)

    Thanks.

    I tried to add this:

    if ( ( typeof( infoWindowData.url ) !== "undefined" ) && ( infoWindowData.url !== "" ) ) {
    		windowContent += "<span><strong>URL</strong>: <a href='" + infoWindowData.url + "'>" + infoWindowData.url + "</a></span>";
        }

    That is working fine.
    But how do I make it target=_blank?

    Greetings,
    Jonathan

    Plugin Author Tijmen Smit

    (@tijmensmit)

    Just add the target blank to the url as an attribute like this.

    if ( ( typeof( infoWindowData.url ) !== "undefined" ) && ( infoWindowData.url !== "" ) ) {
    		windowContent += "<span><strong>URL</strong>: <a target='_blank' href='" + infoWindowData.url + "'>" + infoWindowData.url + "</a></span>";
        }
    Thread Starter JonathanFokker

    (@jonathanfokker)

    Thanks!

    I have a similar issue: I like to show the URL (of the store) both in the info (pop-up) window as well as in the navigator on the right (http://www.smartearth.be/verkooppunten).

    I was unable to use the instructions in this page (above) so I’d appreciate so clear directions and instructions (not that much of a programmer). Many thanks !

    Eddy (Noordwijk, The Netherlands)

    Plugin Author Tijmen Smit

    (@tijmensmit)

    I’m working on adding it as an option for the next version, so you don’t have customize the code anymore to turn the store titles into a link.

    The update should come out in the next days, but if you can’t wait you can email me at info at tijmensmit.com and I can send you the modified version ahead of the official release.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Add URL to popup window’ is closed to new replies.