Problem with Google maps

Latest Reply from Albert van Gaalen at 2013-04-04 02:40:29

Hello, I am using free version of Diablofun theme and it's really great! However, I have some problems with adding maps to my pages/posts. I tried few different plugins ( and most important for me is Simple Google Maps) but none of them showed me map. Of course I tried to turn off all plugins- in case of some conflict, but this didn't help. Then I just changed theme to other ( like twenty eleven) and all worked fine. So right now I am wondering if there is some simple way to show maps with this theme?

Hi there!
Could you write here url of your website?

This is the website: http://www.avantasia.nstrefa.pl/

Map should appear under "FANS MAP" page (http://www.avantasia.nstrefa.pl/?page_id=1538) but it shows only form for adding markers. This is why I want this plugin (Simple Google Maps), I haven't found anything similar and I can't do it on my own.

Anyway- today I realized that Diablofun have contact form in with you can add map. And this works fine, you can check it on "CONTACT" PAGE (http://www.avantasia.nstrefa.pl/?page_id=1541).

So it looks like problem with the plugin... But I also tried, just to check if map works, plugins like: Leaflet Maps Marker or Basic Google Maps Placemarks, with the same result.

The matter is twice including jQuery on this page. To solve this just remove string

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js"></script>

from inc/library.php

Thank you! Now everything works fine.

Hi Admin

May you please help, i am using the SoundWaves Theme, I have a proble with the map not showing up on my contact page http://eagletimeentertainment.co.za/contact/ the geocodes placed on the theme are written like 31.017070;-29.832940 i am pretty sure that these are the correct geocodes

Hi!
First of all you should specify coordinates separated by comma instead of semicolon. The second is coordinates 31.017070,-29.832940 is a point in Atlantic Ocean. You can check it here https://maps.google.com/maps?q=34.452218,-28.930666&num=1&t=m&z=4.

Hi, Administrator:

The matter is twice including jQuery on this page. To solve this just remove string
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js"></script>
from inc/library.php

Thanks for the solution that you mentioned above. It did help me to find the problem (the same problem as others mentioned in this topic), BUT......

- It does not work for me for just removing one line, I need to remove 5 lines that under "function smt_register_scripts()", which means all of them, to make the event calendar and google map to show up correctly, and at the same time after removing all 5 lines, the original google map in contact form that comes with SMThemes does not work (became a blank white hole).

- My questions are:
1. What's the function smt_register_scripts() for?
2. If I have to remove 5 lines under that function to get other plug-ins work perfectly, will this effect the function/operation of the theme? If do, how to fix? Is there any other code that can do the same thing, but won't effect or conflict to other plug-ins?

Thank you very much and hope will hear back from you soon. By the way, really appreciate that SMThemes design such beautiful themes.

Hi, Administrator:

- It does not work for me for just removing one line, I need to remove 5 lines that under "function smt_register_scripts()", which means all of them, to make the event calendar and google map to show up correctly, and at the same time after removing all 5 lines, the original google map in contact form that comes with SMThemes does not work (became a blank white hole).

After testing again, I think I only need to remove the following two lines instead of all 5 lines,

wp_register_script( 'googlemaps', 'http://maps.google.com/maps/api/js?sensor=false', array( 'jquery' ), '3' );
wp_enqueue_script( 'googlemaps' );

BUT the google map of the contact form still remind white blank hole (it somehow shows up and then become white blank again). Is there any way to fix it? Thanks

Hi!
Conflict with jQuery could occur in older templates. Because code
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js"></script>
was included in html directly.

Function smt_register_scripts used in new themes to let WordPress know which scripts needed for template. Now if some of plugins require jQuery. It will be included only once.

could you give us URL to your website to find a problem.

Hi, Administrator:

Thanks for your quick reply.
Actually, my web is still testing at local machine, not yet on the web.

same problem. created a website on a temp domain. everything worked.
moved site to it's own domain when it was ready. map won't show anymore...

temp url: <url>http://scorpion.be/showcase/bab/contact/</url>

final url: <url>http://babbelutte-kleding.be/contacteer-ons/</url>

please advice (purchased theme extremesport)
I replaced the map with a embedded map.

simlpe map trabaja como la hueva
Hi,

i have also the same problem with the extremesport-theme. After theme activation the google map is not shown anymore. the url is www.diefliesenleger-online.de/kontakt/

Also there is no slide down to content after pressing the menue item after theme activation. I need help! THX
Hi,

Same map not showing problem. Only when I refresh the page it shows the map. I also tried to remove the string you mentioned above, but no result. I see &#8211 written just behind the Location url. I'm using Suits theme. url is http://bedandbreakfastbourgogne.com go to Contact or Location page. Please advice
Thanks

Leave a reply

Add codeAdd image