Timeline for Google Maps not displaying in wordpress using Google Maps Javascript API
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Sep 19, 2016 at 15:47 | comment | added | Dave Romsey |
You could wrap the calls to wp_enqueue_script() with a conditional statement, such as is_page_template() or is_page() using a similar pattern to what is done with the comment-reply script. This also might be helpful: stackoverflow.com/questions/11740663/…
|
|
Sep 19, 2016 at 13:02 | comment | added | steamfunk | Thanks again for the help. I am experiencing an error and i think it is due to the maps loading on every page, but the map div is not on all the pages only the contact page, how could i get rid of this errror? Uncaught TypeError: Cannot read property 'offsetWidth' of null | |
Sep 15, 2016 at 19:14 | vote | accept | steamfunk | ||
Sep 15, 2016 at 18:17 | history | edited | Dave Romsey | CC BY-SA 3.0 |
Note about dependency
|
Sep 15, 2016 at 18:12 | history | answered | Dave Romsey | CC BY-SA 3.0 |