Jump to content

İletişim formuna Adres, Telefon ve google maps eklemek


elif44

Recommended Posts

Merhaba,

tema dosyalrınız içindeki contact-form.tpl

dosyası üzerinde düzenleme yapmanız gerekiyor.

<script src="https://maps.googleapis.com/maps/api/js?v=3.exp"></script>
{literal}
<script>
var map;
function initialize() {
  var mapOptions = {
    zoom: 8,
    center: new google.maps.LatLng(-34.397, 150.644)
  };
  map = new google.maps.Map(document.getElementById('map-canvas'),
      mapOptions);
}
google.maps.event.addDomListener(window, 'load', initialize);
</script>
{/literal}
<div id="map-canvas" style="widtH:500px; height:200px;"></div>

google map 'i bu kodlarla ekleyebilirsiniz.

diğer bilgiler içinde normal html düzenleme yapabilirsiniz.

yalnız o dosya içindeki {if} taglarına dikkat edin.

 

kolay gelsin

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...