Google Maps

Hello,

When I add the google map it’s not showing up on my site. Are you aware of any issues with this?

Thanks,
Daniel

Hello,

Nope. Can you post a link to your website so I can check?

Hi Vlad,

Can I email you with access. The site is currently setup with an under development plugin.

Thanks,
Daniel

Hello,

Quick question. Now that I look at it, can I use this on a contact page or does this only work on the front page?

Thanks,
Daniel

Hello,

Not necessarily on the actual front page, but on a page that uses the Front Page template. That’s easy to change if you want, you only need to remove the check from the header.

Feel free to email me at vlad[at]athemes.com

Hi Vlad,

Thanks. How can I remove the header check? I confirmed it worked on my home page, but I want to use it on the contact page which is not using the front page template.

Thanks,
Daniel

Hello,

Depending on the header type you are using (image, slider, video or Revolution slider) you need to open the header-*.php file. If you’re using an image, it’s just header.php. If not, it can be header-slider, header-video or header-rev.

When you open it, look for this:


<?php if ( is_page_template('page_front-page.php') ) : ?>
	<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
<?php endif; ?>

You need to change it to this:


<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>

Or even better, you can change it to this to avoid the script loading on every page:


<?php if ( is_page('Contact') ) : ?>
	<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
<?php endif; ?>

Just make sure to change Contact for your actual page name if you’re using the last method.

Obviously, changing php files should be done in a child theme.

Let me know how it goes.

Hello,

Thank you for your response. I am all set.

Thanks again,
Daniel

Hello Vlad

i just purchased moesia pro love the design, for some reason the google maps is not appearing and i have tried using a link and tried inputting my address none of them have worked, also tried searching the site for answers but nothing seem to appear.

Hello,

Can you post a link to your website please?