私は、Wordpressサイト内のウィンドウのようなライトボックスにGoogleマップを表示するにはここに記載されている手順に従います。http://wordpressthemescollection.com/simple-modal-google-map-easy-modal-map-boxes-with-jquery-752.htmlGoogleマップを表示するWordpressモーダルウィンドウ
しかし、コードは機能しません。チェックFirebugのエラーを与えるjQueryとシンプルなモーダル・スクリプトがロードされていることを私は確信して作った
「jQuery.modalは()関数ではありません」と私はマップを表示するページに私はjQueryのコードが含まれ
<a href="http://maps.google.com.." class="map">Show map</a>
....//some more code
jQuery(document).ready(function() {
jQuery('.map').click(function (e) {
jQuery.modal('<iframe src="'+this.href+'&output=embed"></iframe><p class="larger"><a target="_blank" href="'+this.href+'">View larger</a></p>');
return false;
});
});
私はjQuery.modal(....
ニーズがjQuery('#someid').modal()
ではなく、それについて移動する方法がわからに変更することをひそかに疑いを持っています。
ここで間違っていることを誰かに知らせることができます。
感謝
編集:私は述べたように、私はすでにheader.phpの
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js" type="text/javascript"></script>
<script src="/wp-content/themes/thename/js/jquery.simplemodal.1.4.1.min.js" type="text/javascript"></script>
'jQuery.modal'は' jQueryの( '#のsomeid')。modal'に変更する必要はありません。最新のjQueryとSimpleModal .jsをインポートしてもよろしいですか? – CrisDeBlonde
私の質問、任意のポインタを編集しましたか? –