Tagged: map
-
AuthorPosts
-
November 27, 2019 at 5:05 am #1160557
The map on this page is not showing. https://erstadarchitects.com/contact/ The api check in theme options says it is connected but the console shows this error:
Uncaught (in promise) TypeError: Cannot read property ‘marker’ of undefined
at $.AviaMapsAPI._applyMap (shortcodes.js?ver=2:497)
at HTMLBodyElement.d (jquery.js?ver=1.12.4-wp:2)
at HTMLBodyElement.dispatch (jquery.js?ver=1.12.4-wp:3)
at HTMLBodyElement.r.handle (jquery.js?ver=1.12.4-wp:3)
at Object.trigger (jquery.js?ver=1.12.4-wp:3)
at Object.a.event.trigger (jquery-migrate.min.js?ver=1.4.1:2)
at HTMLBodyElement.<anonymous> (jquery.js?ver=1.12.4-wp:3)
at Function.each (jquery.js?ver=1.12.4-wp:2)
at a.fn.init.each (jquery.js?ver=1.12.4-wp:2)
at a.fn.init.trigger (jquery.js?ver=1.12.4-wp:3)
Please copy my developer William in all email responses at: (Email address hidden if logged out) . Thank you!November 27, 2019 at 6:12 pm #1160752Hey pamelamyhre,
You have the js/shortcodes.js in your child theme, has it been updated with a fresh copy?
Best regards,
VictoriaNovember 27, 2019 at 9:58 pm #1160810Hi Victoria, where would I be able to get an updated copy of that file?
It isn’t in the base child theme linked on your theme page.
Do you have a download link you can give me?Thanks
November 27, 2019 at 10:03 pm #1160812There is a js/shortcodes.js in the main theme file but that is a lot smaller than the one we have in the child theme, maybe you can just give me the updated map code only and I can swap that out?
Thanks
November 28, 2019 at 4:21 pm #1161020Hi pamelamyhre,
That’s the point, it has changed over some versions and some of the code moved to separate files. You can use the file from the parent them and add the changes on top of it if you still need them.
Best regards,
VictoriaNovember 30, 2019 at 4:53 pm #1161464Hello Victoria, Thank you. I deleted that file in the child theme and the maps are working. What I did not understand is that the file was part of the theme or whatever. I thought it was added until you mentioned the code being moved to separate files. I just thought it was something the person who built the site did.
Anyhow it’s all good now, thank you for your help with this.December 2, 2019 at 7:08 am #1161752 -
AuthorPosts
- You must be logged in to reply to this topic.