plugin-icon

Convert Address to Google Maps Link

Converts addresses in the "<address></address>" tags into links that open a Google Map in a new window.
Beoordelingen
5
Laatst bijgewerkt
February 13, 2016
Versie
1.2
Actieve installaties
200
Convert Address to Google Maps Link

NORMAL LINKS: This simple plugin converts addresses in “<address></address>” tags into links that open a Google Map in a new window. It also converts any address in a “.address” class into a Google Map link that opens in a new window.

NOTE: You need to put the address inside the <address></address> html tag or within an html element with the .address class for this plugin to work. For example, you would need to write the following into your code: <address>3 Abbey Rd, London NW8 9AY, United Kingdom</address> OR <span class=“address”>3 Abbey Rd, London NW8 9AY, United Kingdom</span> OR <div class=“address”>3 Abbey Rd, London NW8 9AY, United Kingdom</div>

IFRAME LINKS: If you want to display the Google Map in an iframe, just use the .address-iframe class in your markup. For example, <div class=“address-iframe”>3 Abbey Rd, London NW8 9AY, United Kingdom</div> (Thanks to Mike Jasper for this idea and code!)

FYI: This plugin is great for themes with custom fields that supply the address, but is probably not too useful for themes that don’t, because you’ll need to enter the text view to add the appropriate html markup. Thanks!

Finally, many many thanks to Mike Jasper , who wrote the javascript that powers this plugin. I merely repackaged his code.

Gratisop Creator abonnement
Door te installeren, ga je akkoord met de Servicevoorwaarden van WordPress.com en de voorwaarden voor plugins van derden.
Actieve installaties
200
Getest tot
4.4.32
Deze plugin kan worden gedownload, zodat je hem op je zelf-gehoste WordPress-installatie kan gebruiken.