Hmm, I’m not sure! Are you comfortable accessing the console in your browser and checking for variables? If so, see what the value of bpfwp_map is.
Alternatively, is it possible you’re using the disable_scripts theme support option to not enqueue the scripts? That would also prevent the api key from firing.
There’s also a bpfwp_autoload_google_maps filter that will prevent it from loading the google maps api. (This is in case you are loading it elsewhere, like with another plugin.) If so, you would need to make sure the API key is getting attached there.
If none of that sounds right, feel free to post a link to the site with the problem and I’ll see if I can spy anything amiss.
Thanks Nate. I wasn’t sure where to find the variable you mentioned and we should not have scripts disabled because the theme we are using it’s lots of animation and I haven’t specifically disabled anything.
I did include the URL at the bottom of my post but I put spaces in it so that it wouldn’t be an obvious link in case any bots wanted to pick it up – www . pmghi . com.
Thanks, Bruce…
Hi Bruce,
You don’t seem to be using the map from my plugin on your site. Instead, the API is getting loaded in a script tag in the header:
View post on imgur.com
That’s not coming from my plugin (Business Profile works by injecting the API in after load so it’s not render-blocking). It’s not clear where that’s coming from, but there are two scripts from the “Cherry Framework” just above it, which is usually associated with themes from TemplateMonster. That may not be the case for the google maps code, but that’s where I’d start looking.
Otherwise, you can try deactivating plugins and switching to a default theme like TwentySixteen. Then reactivate them one-by-one until you find the culprit.
Thank you Nate. I really appreciate your help here.
It never dawned on me it was coming from someplace else though I did look around the theme configuration. I had previously configured your Business Profile plugin with my Google Maps API key and the map would briefly render and then give an error. So I assumed – incorrectly – that the error I reported was related.
I’ll let everyone know what I figured out in case this can help to remove an error for other Cherry Framework users.
Bruce…