MissingKeyMapError on contact page


I might just be blind but I cannot seem to find the place to put my google maps api key.

I am getting the MissingKeyMapError error on the page using the ‘Contact’ template, so that’s a bummer.
Could you guys help me locate the right location where to put it or is there something magical I need to do to get it to work.

Thanks a lot in advance, I really love your templates ???


Hello Frizz,

Try to use this plugin to fix it.


Thanks Kharis!

You’re welcome!

Please let us know in a new topic if you have any further questions, or if we can provide you with any other assistance.


Hi Kharis,

I cheered to soon… It seems that in the rocked pro theme the value of the api key will not be filled in.

I also use your sydney pro theme and there I see in header-contact.php:

	$api_key = get_theme_mod('sydney_pro_maps_api');
	if ( !$api_key ) {
    	echo '<script type="text/javascript" src="//maps.google.com/maps/api/js?sensor=true"></script>';
	} else {
    	echo '<script type="text/javascript" src="//maps.google.com/maps/api/js?key=' . $api_key . '"></script>';		

but in the rocked pro theme it’s like this:

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

Perhaps you can make the change in a new version of rocked pro? For now I’ll make a child theme from it and do the adjustment myself.